[JAVA3D] Texture Coordinates problems.

2005-04-20 Thread Hrvoje Smolic
Hello! I'm doing my little Java3D project for a while now. My general idea is to construct a big virtual world. From a height map I construct an TriangleStripArray. Last few days I spent on problem of multitexturing with several TextureUnitStates. From a height information at specific point I

Re: [JAVA3D] I want to know Why the Swing components cannot use in the Java3D ,

2005-04-27 Thread Hrvoje Smolic
Hi! Try this link: http://www.j3d.org/faq/swing.html j3d.org is good source for questions like this... jiom join [EMAIL PROTECTED] Sent by: Discussion list for Java 3D API JAVA3D-INTEREST@JAVA.SUN.COM 27.04.2005 07:22 Please respond to Discussion list for Java

Re: [JAVA3D] textures and gif transparancy

2005-04-28 Thread Hrvoje Smolic
Yes, it is possible. Just define your shape and TextureCoodinates on it. Don't forget to define TransparencyAttributes in shape's Appearance. That would do it. If you need code examples, tell me. === To unsubscribe, send

Re: [JAVA3D] Camera and Location of a Visual Object

2005-04-28 Thread Hrvoje Smolic
For placing any object anywhere, you have to define TransformGroup tg and its Transform3D(new Vector3f(2,1,0). Then with tg.addchild(your_object) you'll place box in sedired position. === To unsubscribe, send email to [EMAIL

Re: [JAVA3D] textures and gif transparancy

2005-04-28 Thread Hrvoje Smolic
OK. Here is part of class Grass from my game in progress (magicwoods.50megs.com): the class define Shape3d and textureCoordinates: -- public Grass1() { Transform3D posTransform3D = new Transform3D();

Re: [JAVA3D] About posting Java3D job

2005-04-28 Thread Hrvoje Smolic
You can take a look at magicwoods.50megs.com for what I'm doing right now. If you are interested in something like this, please contact me. === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the

Re: [JAVA3D] How to have a shape on other shape

2005-04-28 Thread Hrvoje Smolic
What exactly is on your mind? You are working in 3D here... If you want to put something near other object (or on a top of it), you define TransformGroup for each object and Transform3D, too. Then you can put one object on location (1,0,0) and other on (1,1,0), for example. ... .. Transforme3D

Re: [JAVA3D] Problem with TriangleArray

2005-04-29 Thread Hrvoje Smolic
Hi! After quick inspection of your code, I suspect that what is missing are data where ro put your Shape3D. You have to define: Transform3d tran tran.setTranslation(some Vector3f) TransformGroup tg (tran) tg.addChild(yourshape3d) objroot.addChilg(tg) ... .. ...

Re: [JAVA3D] a sample code about TriangleStripArray

2005-05-10 Thread Hrvoje Smolic
vertex count is total number of vertexes (points) in array. StripVertexCount[] is number of strips,(imagine tracks one close to other to third...) | \ | \ | \ | \ | \ | | \ | \ | \ | \ | \ | | \ | \ | \ | \ | \ | | \ | \ | \ | \ | \ | = 5 strips, and 30 vertex Saeed Ansari [EMAIL

Re: [JAVA3D] Memory problem

2005-06-10 Thread Hrvoje Smolic
Saeed, textures consume much memory in Java. You should increase heap size of your application by argument -Xmx128m or -Xmx256m... So: java -Xmx256m YourClass Saeed Ansari [EMAIL PROTECTED] Sent by: Discussion list for Java 3D API JAVA3D-INTEREST@JAVA.SUN.COM 09.06.2005 19:13

[JAVA3D] TextureUnitStates for terrain rendering

2005-06-13 Thread Hrvoje Smolic
Hi all! I was playing with different parameters for texturing my terrain over weekend, but with no satisfactory results. My idea is to have base layer (grass), and on top of it replace it with alpha blended different texture (snow, for example). In that way I will have a nice transition from grass