Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Baune

#1
That helped, thanks !
#2
Ok just tried it and it seems like some surfaces are missing or ot showing...
I tried to make my own version from scratch, to see if there was something missing but with the same result:
Here's my version, acts just the same as the first one. Hope someone knows how to make a proper box.


box.addTriangle( v( -x, -y, -z ),v( -x, y, -z ),v( x, y, -z ));
   box.addTriangle( v( x, -y, -z ),v( -x, -y, -z ),v( x, y, -z ));//X,Y
     
   box.addTriangle( v( -x, -y, z ),v( -x, y, z ),v( x, y, z ));//X,Y
   box.addTriangle( v( x, -y, z ),v( -x, -y, z ),v( x, y, z ));
   
   box.addTriangle( v( -x, -y, -z ),v( -x, y, -z ),v( -x, y, z ));//Y,Z
   box.addTriangle( v( -x, -y, z ),v( -x, -y, -z ),v( -x, y, z ));
   
   box.addTriangle( v( x, -y, -z ),v( x, y, -z ),v( x, y, z ));//Y,Z
   box.addTriangle( v( x, -y, z ),v( x, -y, -z ),v( x, y, z ));
 
   box.addTriangle( v( -x, -y, -z ),v( -x, -y, z ),v( x, -y, z ));//X,Z
   box.addTriangle( v( x, -y, -z ),v( -x, -y, -z ),v( x, -y, z ));
   
   box.addTriangle( v( -x, y, -z ),v( -x, y, z ),v( x, y, z ));//X,Z
   box.addTriangle( v( x, y, -z ),v( -x, y, -z ),v( x, y, z ));
#3
Thanks again all..you've been very helpful
#4
Thanks, I'll try that.
#5
Support / Creating a Box with different parameters
July 02, 2010, 03:43:04 PM
Hello again

Yes I'm aware of the Primitives.getBox(float scale, float scaleHeight)

But is there a way to create it with these parameters  getBox(scale, x,y,z) where

x - the size of the box along the x axis, in both direction.
y - the size of the box along the y axis, in both directions
z - the size of the box along the z axis, in both directions

Thanks


#6
Support / Re: How to make your own geometry ?
June 11, 2010, 10:16:41 PM
Thanks, that should do it.
#7
Support / How to make your own geometry ?
June 11, 2010, 01:34:50 PM
Hello

I can see that you can make standard primitives but how do you setup your own geometry using your own vertices-arrays ?

Thanks alot