Java 3D API help

3D programming

Page 1 of 1

7 Replies - 1768 Views - Last Post: 13 August 2007 - 12:12 AM Rate Topic: -----

#1 RautRupali  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 45
  • Joined: 07-June 07

Java 3D API help

Post icon  Posted 10 August 2007 - 12:01 AM

Hi All,

I want to create a 3D image from different views of CT scan images.

Eg: a 3D brain Image By combining all views(left,right...)

If anyone knows The concept of "Volume Rendering/surfaceRendering" this please let me know.

Thanks,
Rupali.
Is This A Good Question/Topic? 0
  • +

Replies To: Java 3D API help

#2 alpha02  Icon User is offline

  • Sexy DIC God
  • member icon

Reputation: 46
  • View blog
  • Posts: 803
  • Joined: 20-May 06

Re: Java 3D API help

Posted 10 August 2007 - 12:42 AM

To get you started, search for the j3d package. Its documentation might tell you all you may need to know.

http://java3d.j3d.org/

Hope this helps, if u got any questions post here.
Was This Post Helpful? 0
  • +
  • -

#3 RautRupali  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 45
  • Joined: 07-June 07

Re: Java 3D API help

Posted 10 August 2007 - 01:00 AM

[/quote]
Hi,
I go through the link. I got one volume rendering program .It is taking .vol(volume) file as input and displaying it. But I want to create this .vol file by combining different .dcm image files. How to do this?

I m Reading Java 3D API from last 15 days.But I can't get exact meaning if Textures..Texture coordinates..etc.

If U Know this concepts..Can u please describe?

Also Creating voxels From Pixel...

Thanks,
Rupali.
[/quote]
Was This Post Helpful? 0
  • +
  • -

#4 1lacca  Icon User is offline

  • code.rascal
  • member icon

Reputation: 44
  • View blog
  • Posts: 3,822
  • Joined: 11-August 05

Re: Java 3D API help

Posted 10 August 2007 - 01:08 AM

A nice tutorial with J3D

For better performance however using OpenGL might be a good idea. Here is a tutorial and here is LWJGL that let's you use OpenGL in Java.
Was This Post Helpful? 0
  • +
  • -

#5 1lacca  Icon User is offline

  • code.rascal
  • member icon

Reputation: 44
  • View blog
  • Posts: 3,822
  • Joined: 11-August 05

Re: Java 3D API help

Posted 10 August 2007 - 01:25 AM

Unfortunately I don't know how standard or widespread the vol and dcm files are. If they are used in more applications, then chances are great that you'll find some converter via google. If they are not, then you'll have to write the converter yourself. The program you mention is opensource, so you can see how the vol file is parsed, thus you can understand its format. I am not sure about dcm.
Textures are explained here. Although the sample code in the article is c/c++, you can download the Java version at the bottom (and the LWJGL, too)

This post has been edited by 1lacca: 10 August 2007 - 01:25 AM

Was This Post Helpful? 0
  • +
  • -

#6 RautRupali  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 45
  • Joined: 07-June 07

Re: Java 3D API help

Posted 10 August 2007 - 02:48 AM

Sorry,
this sites are not accessible for me.

The volume rendering program is reading volume file byte by byte and storing image data into an 3dimentional byte array (byteadata[x][y][z])

The volume file give 3 attributes
xDim=256,yDim=256,zDim=109

But while calculating actual size of image data they are taking zDim as 128

=> image data size=256*256*128

They are creating textures along each axis as follows

no of xTextures=256
no of yTextures=256
no of zTextures=109

What i understand from this is "texture is a image" and they are displayng this images

I can't understand the mousebehavior.

First time all textures are loaded...
After rotating the 3Dmodel,If the textures corresponding to the current coordinates are loaded again ...Or Textures are not loaded only co_ordinates changes.

And If only coordinates are transformed then how the new cocordinates are mapped to texture coordinates to see different sides of 3D model???????

please let me know if u know how the coordinate system changes at runtime..

Thanks
Rupali
Was This Post Helpful? 0
  • +
  • -

#7 1lacca  Icon User is offline

  • code.rascal
  • member icon

Reputation: 44
  • View blog
  • Posts: 3,822
  • Joined: 11-August 05

Re: Java 3D API help

Posted 10 August 2007 - 04:29 AM

Textures are not reloaded, only the coordiantes are changed, that define for each triangle which part of the texture is projected.
You see different sides of a 3D model, because the vertex coordinates are transformed (rotated, translated, etc.).
I feel that you should learn the basics before trying to accomplish this task.
I can really recommend the NeHe tutorials, if they are blocked from you (I really wonder why) try to search for them on google, and try to open the cached copies, it might work.
Was This Post Helpful? 0
  • +
  • -

#8 RautRupali  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 45
  • Joined: 07-June 07

Re: Java 3D API help

Posted 13 August 2007 - 12:12 AM

Thanks,

In my company some sites are restricted for us.I told one of my friend in other company to download tat lessons and send to me .

I will try my best.

Thanks again..........
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1