Creating Primitives (box,sphere,plane)

Return to Scripting Issues

Creating Primitives (box,sphere,plane)

Postby burnhard » Thu Jul 26, 2012 1:07 pm

I've looked through the manual and the forums, but I can't seem to find anything simple for creating primitives. (it seems to be hiding from me). The idea was to make a 3d pong game.

Can someone provide a link?

Thanks.
Kev.
burnhard
 
Posts: 2
Joined: Mon Feb 13, 2012 10:33 am

Postby teedee » Thu Jul 26, 2012 1:22 pm

Hi, such a feature does not exist in Panda.
The easiest way to do this is to just make a very simple model of a cube, sphere, whatever and load it as you would any other model.
For example you could make a model of a cube with edges 1 unit long. You can scale the model to get any size of cuboid.
teedee
 
Posts: 782
Joined: Tue May 12, 2009 11:33 pm
Location: Kepler-22b

Postby burnhard » Thu Jul 26, 2012 3:45 pm

Thanks buddy :)
burnhard
 
Posts: 2
Joined: Mon Feb 13, 2012 10:33 am

Postby DangerOnTheRanger » Thu Jul 26, 2012 8:31 pm

teedee wrote:Hi, such a feature does not exist in Panda.
The easiest way to do this is to just make a very simple model of a cube, sphere, whatever and load it as you would any other model.
For example you could make a model of a cube with edges 1 unit long. You can scale the model to get any size of cuboid.


Quick note to anyone thinking of using the above technique: I can personally state that this works very, very well - however, if precision is an issue (say, if you'll be scaling the primitive by a factor of around 10 or more), you'll need to modify the .egg file to correct for floating-point errors.
Free + open-source game development kit: http://openblox.sourceforge.net

My blog: http://dangerontheranger.blogspot.com
User avatar
DangerOnTheRanger
 
Posts: 240
Joined: Fri Aug 27, 2010 4:59 pm


Return to Scripting Issues

Who is online

Users browsing this forum: No registered users and 0 guests