Thank you Hrvoje, really thank you
I had several problems and now, with your help, all is OK.
I took a look on your work, that seems beautifull.
Bye
On 4/28/05, Hrvoje Smolic <[EMAIL PROTECTED]> wrote:
> OK. Here is part of class Grass from my game in progress
> (magicwoods.50megs.com):
>
> the c
Thank you Hrvoje,
I tried it but it didn't do it. So, if you could give me a code example...
Thank you in advance
On 4/28/05, Hrvoje Smolic <[EMAIL PROTECTED]> wrote:
> Yes, it is possible. Just define your shape and TextureCoodinates on it.
> Don't forget to define TransparencyAttributes in shape
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();
Vect
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 email
Hello,
Is it possible to use the transparancy color of a gif that is used as
a texture ?
I use a gif with a transparancy color as texture on a shape. I'd like
the shape (in fact a 2D square) to be transparent where the gif is
transparent. Is it possible and how ?
Thank you.
Dirk
-Original Message-
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Spencer
Sent: Saturday, January 08, 2005 1:23 PM
To: JAVA3D-INTEREST@JAVA.SUN.COM
Subject: [JAVA3D] Textures using TexCoordGeneration
Hi there,
I have used GeometryInfo to create a numb
Hi there,
I have used GeometryInfo to create a number of square planes for a
shape and I am now trying to map a texture to these planes. I am using
TexCoordGeneration to create the Texture Coordinates for the shape:
app.setTexCoordGeneration(new
TexCoordGeneration(TexCoordGeneration.OBJECT_LINEAR
You're right, my code had effectively not set the texture
coordinates. I was using modified versions of the helper classes and
hadn't realized that I needed to add something to the flags to get the
texture coordinates generated. It all works now.Thanks,
-- Russell
Florin Herinean wrot
: Donnerstag, 1. April 2004 03:05
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Textures
Hello,
did you ever get an answer for this? I see the same thing.
-- Russell
Seatizen wrote:
>Hello.
>There is an example of creating shapes using TriangleFanArray class in the
>Java3D Sun
Hello,
did you ever get an answer for this? I see the same thing.
-- Russell
Seatizen wrote:
Hello.
There is an example of creating shapes using TriangleFanArray class in the
Java3D Sun Tutorial - YoyoApp.java:
...
TriangleFanArray tfa;
int N = 17
Hello.
There is an example of creating shapes using TriangleFanArray class in the
Java3D Sun Tutorial - YoyoApp.java:
...
TriangleFanArray tfa;
int N = 17;
int totalN = 4*(N+1);
Point3f coords[] = new Point3f[to
Does anyone have any tutorial or code example that allows one to create a
texture from a Text2D. I have looked in the tutorials - such a possibility
is mentioned but not discussed. I will greatly appreciate help.
Thanks.
Santosh Misra
<><>
Real Soon Now (TM).
Doug Twilleager
Java 3D Team
Sun Microsystems
>Subject: Re: [JAVA3D] textures are not behaving anymore in beta2
>To: [EMAIL PROTECTED]
>MIME-version: 1.0
>X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.
>Content-transfer-encoding: 7bit
>X-Pri
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, June 30, 2002 7:05 AM
> Subject: [JAVA3D] textures are not behaving anymore in beta2
>
>
> Hi,
>
> I have a mapping application that inits the scene graph with about 200
> shape3d objects. it then uses those objects to disp
when will this release be available?
- Original Message -
From: "David Yazel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 01, 2002 1:00 AM
Subject: Re: [JAVA3D] textures are not behaving anymore in beta2
> I ran into the same problem. It
I ran into the same problem. It seems to be fixed in the final release
(which I have tested).
Dave Yazel
- Original Message -
From: "Matt Carlson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 30, 2002 7:05 AM
Subject: [JAVA3D] textures are not beh
Hi,
I have a mapping application that inits
the scene graph with about 200 shape3d objects. it then uses those objects
to display images and geometries... so i do alot of swapping of images and
geometries for my shape3d objects.
this code was working under java3d api
beta1, but then cea
Hi all,
I have a set of planes mapped one behind the other
having the textures (I am using a 3D texture) mapped
on them. I want to rotate the rendered image. When I
rotate the image, I want the textures always
positioned perpendicular to the viewer. So the planes
will be at the same view but th
buffered array
> >
> >It will be fast, and it will use very little additional memory. The
> >compressed stream will not produce the same sort of compression as PNG or
> >JPG, but it will load very fast.
> >
> >Dave Yazel
> >
> >
> >-Origi
Alvin... sigh... yes, Microsoft seems to live with that concept. Try
programming a Palm PDA some day... it's like going back in time, all of
sudden you don't have "infinite" memory nor CPU power.
Bigger and faster computers are great, but it's no excuse for sloppy
programming.
- John Wright
Sta
Hi Guys,
Have you heard this before "the hardware keeps coming in with more RAM and
bigger CPU" ,"we can always buy a bigger and faster machine", "hardware is cheap"?
A lot of people are coding with this kind of flawed ideas.
Alvin
===
Tom Lanning wrote:
> 1. I am not doing any mipmapping. I leave that to the underlying system.
True, but you can't guarantee it most of the time. Mipmapping is good if
you are
doing large scale work like terrain visualisation, but usually not worth
it for smaller systems.
> 2. I am measuri
age-
From: Tom Lanning [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 8:36 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Textures and memory consumption
Thanks for the suggestions.
1. I am not doing any mipmapping. I leave that to the underlying system.
2. I am measuring
<[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 8:22 AM
Subject: Re: [JAVA3D] Textures and memory consumption
| Couple of things:
|
| 1. If you are mipmapping then there will be increased memory usage.
| 2. Stupid suggestions, but make sure you are measuring memory after you
have
|
8:04 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Textures and memory consumption
I am developing an application that uses a lot of large (512x512) textures.
If I use something like TextureLoader and let it load the images I end up
with consuming over 300M of memory ... much more than the size of
I am developing an application that uses a lot of large (512x512) textures. If I use
something like TextureLoader and let it load the images I end up with consuming over
300M of memory ... much more than the size of the textures. I can reduce the memory
by loading the images myself, transform
I'm using 1.3 beta 1 (OpenGL) on JDK1.3.1_01 - W2K
I also assumed it was the same old bug. I'm not sure why the demo code works, but the
VRML scene doesn't. I spent a bit of time tracking through the source for each. The
old VRML loader using a QuadArray to form a Box, whereas the demo uses the
Josh Richmond wrote:
> In my application I allow the user to toggle between 1 and 4
> viewports. To do this I remove the JPanels containing the Canvas3D's
> from the JFrame, then add the appropriate JPanel(s) back. The problem
> is that if I remove and then reintroduce a JPanel with an object
Hi everyone,
As mentioned in my last post, I have a weird bug using textures from VRML files loaded
with the old Sun VRML loader. I know this loader isn't supported anymore, but I
thought I'd post this question in case others have found solutions.
In my application I allow the user to toggle b
Hi all,
I have 12 bit gray images and want them to use as transparent textures.
What method would be the best if you look at speed and/or memory ? (I
will have about 60-100 images of format 512x512, so it's hard work for
my graphics card and memory bus)
1) convert it to RGBA format and use Image
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, July 07, 2001 3:04 PM
> Subject: Re: [JAVA3D] Textures & hardware
>
>
> > Carolina,
> >
> > The standard answer is yes, update your video
> drivers. It's certainly
> > the cheapest solution.
> &
Thank you John, I'd have to save some money to buy new hardware :)
Carolina
- Original Message -
From: "John Wright" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 07, 2001 3:04 PM
Subject: Re: [JAVA3D] Textures & hardware
> Ca
Carolina,
The standard answer is yes, update your video drivers. It's certainly
the cheapest solution.
You might be seeing some weird problem with not enough texture memory or
something. I'm not sure from your description.
I've heard nothing good about the Intel 740 so if you can afford it yo
Could somebody explain me why do my aplication
texture not show up correctly at my home computer but it does at the
Universty´s? Both computers are similar...could it be because of the graphics
card/drivers?
Texture shows up as color.e.g: Bicks look kind of
like a pink blemish.
I'm using a
Hello all,
I know this must be basic stuff for most of you but I can't seem to manage to make the
tranparency of my textures behave the way I'd like them to. I would very approciate if
anyone could tell me how to get rid of all this black that takes over the transparency
effect.
Thank you
Fr
imeOLE V5.00.2615.200
> Content-transfer-encoding: 7bit
> X-Priority: 3
> X-MSMail-priority: Normal
> Date: Sun, 1 Apr 2001 16:14:25 +0100
> From: Paula Keohan <[EMAIL PROTECTED]>
> Subject: [JAVA3D] Textures and transparency
> To: [EMAIL PROTECTED]
>
> Hi all,
>
Hi all,
I've created an Appearance object from a Texture2D object. I've set the
transparency attributes of the appearance also. But, when I change the alpha
value, it doesn't have any effect on the appearance. Anyone got any ideas
why the transparency doesn't change? Is it just not possible with
On 2001-03-13 at 13:45:59 +, Paula Keohan wrote:
> I've got three questions to ask...
> 1) When would you use Texture3D as opposed to Texture2D?
In case I want the Texture to be different in dependency of Depth.
Especially useful for textures created through algorithms.
> 2) I've created a w
Hello Paula,
On 2001-03-13 at 13:45:59 +, Paula Keohan wrote:
> I've got three questions to ask...
> 1) When would you use Texture3D as opposed to Texture2D?
In case I want the Texture to be different in dependency of Depth.
Especially useful for textures created through algorithms.
priority: Normal
>Date: Mon, 19 Mar 2001 18:46:17 +
>From: Paula Keohan <[EMAIL PROTECTED]>
>Subject: [JAVA3D] Textures and JInternalFrame
>To: [EMAIL PROTECTED]
>
>I wonder if someone could help me please.
>
>I'm using a Java3D scene as a JInternalFrame objec
I wonder if someone could help me please.
I'm using a Java3D scene as a JInternalFrame
object on a JDesktopPane object. I have a texture mapped onto an object.
Everything loads okay but when I minimize and then maximize the internal frame,
the texture just turns to white. How do I stop th
Hello Paula,
On 2001-03-13 at 13:45:59 +, Paula Keohan wrote:
> I've got three questions to ask...
> 1) When would you use Texture3D as opposed to Texture2D?
In case I want the Texture to be different in dependency of Depth.
Especially useful for textures created through algorithms.
On 2001-03-13 at 13:45:59 +, Paula Keohan wrote:
> I've got three questions to ask...
> 1) When would you use Texture3D as opposed to Texture2D?
In case I want the Texture to be different in dependency of Depth.
Especially useful for textures created through algorithms.
> 2) I've created a w
I've got three questions to
ask...
1) When would you use Texture3D as opposed to
Texture2D?
2) I've created a wire model of the outer core of
an orange. I now want to put the texture of the skin of the orange
onto the model. How can I do this so that it doesn't just look like a repeating
pa
Can anyone guide me throught placing a
texture(already formatted) onto a Shape3D object? I have tried the examples yet,
it says that it has an error loading the image.
Zak
problem?
>
> - Original Message -
> From: "John Wright" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, November 02, 2000 4:56 PM
> Subject: Re: [JAVA3D] Textures
>
> > Markus,
> >
> > What video card are you u
> The workaround that I am thinking of: sell the card. ;)
> (I hope somebody at 3dfx is listening)
I can't. I'm only a student :)
> PS: Once I resized my textures down to 256x256, the card seemed to work
> decently well.
I have only textures with 64x64 Pixel.
===
riginal Message-
From: Markus Stiller [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 04, 2000 4:34 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Textures
John,
yes I have an Voodoo3 2000 card. Do you know a
solution or a workaround for the driver problem?
- Original Message -
Fro
John,
yes I have an Voodoo3 2000 card. Do you know a
solution or a workaround for the driver problem?
- Original Message -
From: "John Wright" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 02, 2000 4:56 PM
Subject: Re: [JAVA3D] Textures
&g
Markus,
What video card are you using? Voodoo 3's had defective drivers that
created texture corruption similiar to what you describe.
- John Wright
Starfire Research
> Markus Stiller wrote:
>
> Hallo,
>
> I have another problem. I have made an textured BaseLevel Objekt. Also
> I have added th
Hallo,
I have another problem. I have made an textured
BaseLevel Objekt. Also I have added the Key Navigator Object to the
Scenegraph.
Now the problem. If I stand ca. 2 meters with the
view object by the textured object the texture not not shown correctly. Same
problem if I look at texture
Yipp!
Glad I'm not crazy.
Dave Yazel
> --
> From: Charmaine Lee[SMTP:[EMAIL PROTECTED]]
> Reply To: Charmaine Lee
> Sent: Monday, September 11, 2000 1:54 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] Textures in immediate
.00.2615.200
> Date: Sat, 9 Sep 2000 23:56:55 -0400
> From: David <[EMAIL PROTECTED]>
> Subject: [JAVA3D] Textures in immediate mode?
> To: [EMAIL PROTECTED]
>
> I am getting some wierd behavior. If I draw a shape which has a texture in
immediate (mixed) all geometry is rend
Hi David,
Your problem sounds similar to this bug
report:
http://developer.java.sun.com/developer/bugParade/bugs/4365111.html
John
- Original Message -
From:
David
To: [EMAIL PROTECTED]
Sent: Saturday, September 09, 2000 8:56
PM
Subject: [JAVA3D] Textures
nough, OpenGL emulation does not have the problem.
- Original Message -
From: David
To: [EMAIL PROTECTED]
Sent: Saturday, September 09, 2000 11:56 PM
Subject: [JAVA3D] Textures in immediate mode?
I am getting some wierd behavior. If I draw a shape which has a texture in immediate (mixed
I have confirmed this behavior in the OpenGL
version also. Oddly enough, OpenGL emulation does not have the
problem.
- Original Message -
From:
David
To: [EMAIL PROTECTED]
Sent: Saturday, September 09, 2000 11:56
PM
Subject: [JAVA3D] Textures in immediate
mode
I am getting some wierd behavior. If I draw a
shape which has a texture in immediate (mixed) all geometry is rendered with the
texture, even retained geometry, and even geometry in immediate mode which is
not textured. Everything drawn shows up with the one texture. Very
strange. This is
Hi,
On Tue, 1 Aug 2000, b. white wrote:
> I am using TextureLoader to put .jpg's on a shape 3d. The .jpg's I have a
> smaller than the shape that I map them to so java automatically stretches
> them to be the right size, which is fine. However it looks like java is
> carrying out some sort of bl
I am using TextureLoader to put .jpg's on a shape 3d. The .jpg's I have a
smaller than the shape that I map them to so java automatically stretches
them to be the right size, which is fine. However it looks like java is
carrying out some sort of blending algorithm to compensate for the
informatio
Hello,
I am having trouble setting the texture of a single surface of a primitive
object. For example, I call getShape(Cylinder.TOP), and set the appearence,
but the entire cylinder is textured as a result. Any help would be greatly
appreciated.
...Mike B.
It is very important to set the TextureAttribute to MODULATE:
here's a sample code to load the texture:
public Appearance loadTexture(javax.swing.JApplet applet, String image){
Appearance app = new Appearance();
java.net.URL texImage;
Texture tex;
C
Hello,
I'm trying to create a box with textures on his faces and then get it
lit. When I use the box without texture I can see the lights perfectly,
but when I apply the texture the lights can't not be seen. Can anybody
help?
Thanks in advance
PRISMAKER TEAM
==
Hi,
>
>1. (most important)
>Is the texture memory freed when a Texture object is released?
Yes, texture should be release when branch detach or the
whole scene graph is removed using removeAllLocales()
Thanks.
- Kelvin
Java 3D Team
Sun Microsystems Inc.
=
mail: [EMAIL PROTECTED]
Markus Junginger
<[EMAIL PROTECTED]> To: [EMAIL PROTECTED]
Sent by: Discussion cc:
list for Java 3D APISubject: [JAVA3
Hi everyone
The topic "textures" was briefly discussed in the Voodoo3 thread. I'm not sure
about some "details". Thanks to anyone who can help me.
1. (most important)
Is the texture memory freed when a Texture object is released?
2.
I read, that the width and height of textures shouls be a power
Helo,
Does anybody knows if textures stored in a .mtl file are supported by
the Obj loader class.
bye
Víctor
===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3
FA> BUT.. i think i found the REAL answer to this problem
FA> we need to provide absolute positioning in java3d code for pictures and
FA> other files.
FA> for instance, in my case:
FA> TextureLoader bgtex1 = new TextureLoader(new string("
FA> c:\\jbuilder3\\myprojects\\theGame\\blue.jpg"),new St
hello
i was very much concerned about bringing textures in browser. but i used to
receive the message that:
unable to load image.
i searched alot on interest group, and what i found was that this is a
java3d-problem, because, trees compiles up eariler then the image to get
loaded.
it was suggeste
Nope, runs just fine in both cases. Make sure that in both cases paths to the
textures are written correctly.
vladimir
-=V=-
>---<=>---<
Join in Java community now!
http://JavaCafe.VirtualAve.net/
>---<=>---<
In your previous letter u wrote:
-
ric Arnold <[EMAIL PROTECTED]>
^¶æ : <[EMAIL PROTECTED]>
'-M"úZz : 2000"N 1OZ 29"ú "y-j"ú OßOã 11:54
O-¼ : [JAVA3D] textures in applets
> Has anyone had any problems getting textures to work in an applet? If I
run
> the program on my computer it wor
Has anyone had any problems getting textures to work in an applet? If I run
the program on my computer it works just fine, but if I try to run it off my
web site the program runs, but no textures appear. Thanks for any help
Eric
=
All,
Thank you to everyone who kindly described the fix for texture mapping in
the 1.2A and 1.2B1.
The fix is to set a runtime property that disables "shared display contexts"
which are not supported on some OpenGL hardware. Worse, they are not
supported on Microsoft's software OpenGL implementa
Hi,
> As daniel explains,
> gif can handle transparency !!
I think he meant "alpha" transparencies, not just one transparent color.
Jimmy
===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the m
Hi Per,
>supported. Until now I have used GIF and JPEG, but neither of them
>supports transparency.
As daniel explains,
gif can handle transparency !!
In paint shop pro define a color as the transparent one and use it as
required,
warning:
load the gif not forgetting the A component in your loadin
5:37
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] Textures with alpha and TextureLoader class ...
>
>
> Where can I find a list of the image formats that the TextureLoader
> class can handle. I specifically need a format that can handle
> transparency. I have tried PNG and TIF, but
> Also, why do TextureLoader cause a crash if the specified file doesn't
> exist.
> causes an exception instead of returning null like I would like it to.
> Can I change this?
You can subclass it, override the appropriate method, put a try-catch
block that catches null pointer exceptions in your
Where can I find a list of the image formats that the TextureLoader
class can handle. I specifically need a format that can handle
transparency. I have tried PNG and TIF, but neither seems to be
supported. Until now I have used GIF and JPEG, but neither of them
supports transparency. So which imag
I've got a weird problem with the VRML loader and textures. Seems that the
textures are being loaded off the drive continually. I've put comments in
the VRML loader code and I've found that its only calling the doChangeURL
once... so that leaves the problem somewhere in the utility TextureLoader
Holger Wagner wrote:
> This might be slightly off-topic, but could you explain how you did
> this? We'd very much like to be able to avoid GIF as well, and PNG
> sounds like a good alternative... (I'm kind of surprised that java only
> supports GIF and JPG in the standard JDK - even in 1.2)
Side
Justin Couch wrote:
>
> Chris Wewerka wrote:
>
> > has someone experience with textures using images that have alpha values?
> > I read some mails in the Java2d interest group and so i think i have to use
> > a png-imageproducer to get images with alpha values?
>
> We've got our own image loaders
Chris Wewerka wrote:
> has someone experience with textures using images that have alpha values?
> I read some mails in the Java2d interest group and so i think i have to use
> a png-imageproducer to get images with alpha values?
We've got our own image loaders (ie we've replaced the standard ja
Yes it works. You can simply use a gif with transparency which is properly
decoded by java.
renaud
> -Message d'origine-
> De: Chris Wewerka [mailto:[EMAIL PROTECTED]]
> Date: mardi 19 octobre 1999 16:01
> À: [EMAIL PROTECTED]
> Objet: [JAVA3D] Textures with Alpha
Hi,
has someone experience with textures using images that have alpha values?
I read some mails in the Java2d interest group and so i think i have to use
a png-imageproducer to get images with alpha values?
Does it work with Java3d, using an ImageComponent2d and setting this in
Texture2d with se
I am looking for a good tutorial on textures in Java3d. I am especially looking into
applying textures on .obj or .3ds objects. Also is it possible to query an object for
a particular group of polygons and apply a texture on those polygons only. For
example, is it possible to tag the hull of th
84 matches
Mail list logo