11776
News / "Away from keyboard" for 2.5 weeks
« on: August 11, 2005, 10:48:20 am »
I'll be unable to view this forum and support jPCT from 2005-08-14 to 2005-08-31. Have fun anyway. I hope i will... :wink:
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.
/*
Transparency in OpenGL is implemented in a way that tries to mimic the software renderer. If one is using OpenGL only or can live with different output, the offset in the formula used to calculate the actual transparency from an object's transparency value can be changed to broaden the range. The actual formula is trans=offset+objTrans*mul, default for offset is 0.7f. This setting is ignored by the software renderer.
*/
public static float glTransparencyOffset=0.7f;
/*
Transparency in OpenGL is implemented in a way that tries to mimic the software renderer. If one is using OpenGL only or can live with different output, the multiplicator in the formula used to calculate the actual transparency from an object's transparency value can be changed to broaden the range. The actual formula is trans=offset+objTrans*mul, default for mul is 0.06f. This setting is ignored by the software renderer.
*/
public static float glTransparencyMul=0.06f;
No, it just won't work (as you have noticed). The Mesh is only one part of an Object3D. By creating a (0)-sized object, you are creating an empty object. That doesn't change when setting a mesh. To copy an object, just use the corresponding contructor in Object3D (new Object3D(oldObj)) followed by a setMesh, i.e.:
Wouldn't this be the fastest method to instanciate several similar objects?
Object3D obj=<your 3ds object>;
Object3D clone=new Object3D(obj);
clone.setMesh(obj.getMesh());
Object3D clone=obj.cloneObject();
maybe gmail is down for that moment and forum engine doesnt retry it :?:Maybe. It's on a shared server and i don't have access to the mailer's logs, so i don't really know.
Works for me all the time...couldn't possibly be your spam filter or something?
btw, sometimes forum engine doesnt notify about replies