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.
[RESOLVED]How to make different spheres on the same window ?
[RESOLVED]How to make different spheres on the same window ?
Last edited by bioinfo on Wed 9. Feb 2011, 17:57, edited 1 time in total.
Re: How to make different spheres on the same window ?
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
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
Re: How to make different spheres on the same window ?
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 :)
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 :)
Re: [RESOLVED]How to make different spheres on the same wind
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
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
Re: [RESOLVED]How to make different spheres on the same wind
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.
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.