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
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
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
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
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();
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
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
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)
...
..
...
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
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
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
11 matches
Mail list logo