[RESOLVED]How to make different spheres on the same window ?

Have jReality programming problems or questions? Post them here.
Post Reply
bioinfo
Posts: 4
Joined: Tue 8. Feb 2011, 15:46

[RESOLVED]How to make different spheres on the same window ?

Post by bioinfo » Tue 8. Feb 2011, 15:53

Hi,
I'm currently doing a visualisation and simulation software of molecules in Java.
I use Jreality and I need to know how to make several spheres (to represent my molecule) in one window....
I googlise a lot, and looked at the APi but it looks to be unanswerable...
Can someone here can help me please... ?

Bioinfo.
Last edited by bioinfo on Wed 9. Feb 2011, 17:57, edited 1 time in total.

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: How to make different spheres on the same window ?

Post by Andre » Tue 8. Feb 2011, 20:41

Hi bioinfo,

welcome to jReality. If you've just started with jReality I really can recommend you the developer tutorials:
http://www3.math.tu-berlin.de/jreality/ ... r_Tutorial

At first you should have a look at the Introductory and finally you'll find your solution at the geometry tutorials:

http://www3.math.tu-berlin.de/jreality/ ... et_factory
http://www3.math.tu-berlin.de/jreality/ ... et_factory

best Andre

bioinfo
Posts: 4
Joined: Tue 8. Feb 2011, 15:46

Re: How to make different spheres on the same window ?

Post by bioinfo » Wed 9. Feb 2011, 12:35

Hi Andre,
thank you for your fast answering !
I resolved my problem with the http://www3.math.tu-berlin.de/jreality/ ... et_factory tutorial :)
But now i've got an other problem to solve... I want to change the point size of my points (to grow them up) .
To do this I try with the API and it suggests me to use "setVertexAttribute(Attribute, double[])" with the Attribute "POINT_SIZE".
I understand the method but i don't know how to call it in my implementation... And i didn't find any example of its using.

Can you help me once again please ?

Jreality rox :)

Bioinfo.

EDIT : I found it, not with POINT_SIZE, but with RADIUS
Thx :)

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: [RESOLVED]How to make different spheres on the same wind

Post by Andre » Wed 9. Feb 2011, 21:33

Congrats that you found your solution by yourself.

I guess you have different atom with different sizes.
Maybe it would be interesting for you to add a Slider for each "atomgroup" to the GUI (visible via 'alt'+'shift'+'left' or ->'window' -> [x] 'left slot')

http://www3.math.tu-berlin.de/jreality/ ... _parameter

You should also have a look at the Appearance and the Tools tutorials e.g. to pick the atoms-/groups and change their color, size or what else:
http://www3.math.tu-berlin.de/jreality/ ... rial#Tools
http://www3.math.tu-berlin.de/jreality/ ... ppearances

If there are any further problems, just announce it here.

best Andre

bioinfo
Posts: 4
Joined: Tue 8. Feb 2011, 15:46

Re: [RESOLVED]How to make different spheres on the same wind

Post by bioinfo » Thu 10. Feb 2011, 11:35

Hi !
Thanks a lot for everything :)
I've different atoms with differents size and your option looks pretty cool but i don't need it ;)
If you're interested I can send to you the project when it will be finish ;)

Best regards,

Bioinfo.

Post Reply