WoSGamers

WoSGamers welcome you again, the view faces, pleasing your body - thanking!

Christoffer Pettersson
  • Glasgow
  • United Kingdom
Share on Facebook
Share Twitter

Christoffer Pettersson's Friends

  • Joshua Jahanshir
  • Andrew James McNamara
  • Andrew Cunningham
  • Kieran Nelson
  • Gavin Reid
  • Anthony Walsh
  • Daniel Livingstone
  • John Sutherland

Christoffer Pettersson's Groups

Christoffer Pettersson's Discussions

MD5 loader, inverted normals - Fixed!

Hi, I'm currently working on an MD5 loader and having problems with the normals. I cant get them to display properly unless I enable front face culling. Basically what I want to do is flip them so I…Continue

Started Feb 19

Dynamically allocated array or vector
10 Replies

I have a question regarding dynamically allocated arrays. Do they use a sort of mixture between stack and heap based allocation? since you allocate them on the heap but normal arrays are on the…Continue

Started this discussion. Last reply by Ross Forshaw Nov 2, 2011.

Improve jumping code
26 Replies

Hello. I'm trying to implement a jump feature for my project. But I'm having the problem that the character either jumps in slow-motion or too fast. I'm not sure if I'm doing something wrong in my…Continue

Started this discussion. Last reply by Kalakian May 14, 2011.

RT3D Software Design doc
22 Replies

Hello. just a question regarding the software design doc. Did you want us to write down every single function/data member of every class? Or just the most important ones? Kind RegardsChristoffer…Continue

Started this discussion. Last reply by Ross Kilgariff Dec 12, 2010.

Gifts Received

Gift

Christoffer Pettersson has not received any gifts yet

Give a Gift

 

Christoffer Pettersson's Page

Latest Activity

Christoffer Pettersson posted a discussion

MD5 loader, inverted normals

Hi, I'm currently working on an MD5 loader and having problems with the normals. I cant get them to display properly unless I enable front face culling. Basically what I want to do is flip them so I can work with back face culling. I've tried flipping vectors I use to calculate the crossproduct and tried different orders to calculate the vector as well. But no matter what I try the it always require front face culling. Below is the code I use to calculate the normals://Iterate through all the…See More
Feb 19
Christoffer Pettersson joined John Sutherland's group
Thumbnail

Game in Scotland

The biggest games industry recruitment event in Scotland. UWS are running a bus from Paisley.  If you wanna come on it, just join this group.  We'll check numbers at the end of February.See More
Nov 26, 2011
Christoffer Pettersson replied to John Sutherland's discussion TAG Games Visit Term 2
"I'd find it interesting to know about the coding in the industry. The similarities and dissimilarities between what we're doing in uni and what it's like once you get into the industry. I want to know what it's like for…"
Nov 20, 2011
Christoffer Pettersson might attend Anthony Walsh's event

IAESTE Placement Presentations at Paisley Campus

November 23, 2011 from 12pm to 2pm
Representatives from the Glasgow Local Committee of IAESTE (The International Association for Exchange of Students on Technical Experience), including myself, will be giving presentations on why an international placement is an awesome thing to do. These will take place on Wednesday 23rd November from 12pm - 2pm in D130. Come along, chat about international placements. How to get one, why they are awesome, and anything else in between.See More
Nov 20, 2011
Christoffer Pettersson commented on Anthony Walsh's event 'IAESTE Placement Presentations'
"I'll be there if I'm able to leave the group meeting on wednesday :)"
Nov 20, 2011
Ross Forshaw replied to Christoffer Pettersson's discussion Dynamically allocated array or vector
"It is a more refined and descriptive version that states my reasoning and argument. :)"
Nov 2, 2011
Kalakian replied to Christoffer Pettersson's discussion Dynamically allocated array or vector
"You've just repeated what you said before :P   The main difference is the third solution you mention, as it is the easiest and quite common to do ... coupled with multi-threading, load up at the start, and in-between levels etc."
Nov 2, 2011
Ross Forshaw replied to Christoffer Pettersson's discussion Dynamically allocated array or vector
"In my post I do discuss the issues in relation to both dynamic and static allocation. I also discuss on how one can resolve performance issues in relation to using dynamic allocation. Though I will attempt to clear-up a few grey-issues my original…"
Nov 2, 2011
Kalakian replied to Christoffer Pettersson's discussion Dynamically allocated array or vector
"Fairly detailed description, but I'd have to disagree with "Dynamically allocating memory is generally considered very bad" as it is far too generalised, and not true.  Taken as-is, that statement suggests that data-driven design…"
Nov 2, 2011
Ross Forshaw replied to Christoffer Pettersson's discussion Dynamically allocated array or vector
"Dynamically allocating memory is generally considered very bad as it generally requires the use of new/delete, these operations in a gaming sense are horrendously slow as it requires the kernel to switch modes and start sifting through the…"
Nov 2, 2011
Kalakian replied to Christoffer Pettersson's discussion Dynamically allocated array or vector
"OK, I got that bit about vectors being non-contiguous wrong, but ... for the memory to be contiguous, either:   * All memory is allocated at the start OR * Memory is re-allocated everytime the vector grows, and contents from the old memory…"
Nov 1, 2011
Peter Bloomfield replied to Christoffer Pettersson's discussion Dynamically allocated array or vector
"An array is by definition a contiguous block of memory. If it's not contiguous, then it's not an array. :) In C++, a vector is just a wrapper round a dynamic array, so likewise will always be contiguous, and the performance difference…"
Nov 1, 2011
Christoffer Pettersson replied to Christoffer Pettersson's discussion Dynamically allocated array or vector
"Cool :) I'll go with a dynamic array then.   Cheers"
Nov 1, 2011
Christoffer Pettersson commented on Peter Bloomfield's blog post Elements of Modern C++ Style (i.e. C++11)
"Yea I've only tried winapi so far but I found it very messy. So was planning on looking into Boost or SDL. the thing with SDL though, is it used for anything other than games? If the principles of concurrent programming are common though like…"
Nov 1, 2011
James Moore replied to Christoffer Pettersson's discussion Dynamically allocated array or vector
"Surely if there is something within the file that tells you the number of vertices, you could read this number in first, assign an array of size n, with n being the number of vertices, and then populate the array with the vertices"
Nov 1, 2011
Kalakian replied to Christoffer Pettersson's discussion Dynamically allocated array or vector
"There's bound to be someone who'll disagree with me on this, but, IMHO:   Vectors are for flexibility, dynamic arrays are for performance.  Dynamic arrays are allocated as contiguous memory, but vectors aren't (unless you…"
Nov 1, 2011

Profile Information

What are your main areas of interest?
programming, playing games

Comment Wall

You need to be a member of WoSGamers to add comments!

Join WoSGamers

  • No comments yet!
 
 
 

Forum

Closing WosGamers.ning.com 2 Replies

Started by John Sutherland in News. Last reply by Daniel Livingstone May 11.

C++ graphics programming job at Vertual 2 Replies

Started by Peter Bloomfield in Portfolios & Employment. Last reply by Peter Bloomfield May 2.

Get to Brighton...

Started by Daniel Livingstone in Portfolios & Employment Apr 19.

Groups

Events

© 2012   Created by John Sutherland.   Powered by .

Badges  |  Report an Issue  |  Terms of Service