Sorry I didn't post before.
At last, I have finished my project. Finally I haven't used jPCT as the API for 3D graphics, primarily because of lack of time. I sticked with IDX3D, and concentrated in other non-3D aspects of the project. In fact, I believe jPCT would have been a better choice than IDX3D, and I would recommend it.
To solve the problem of displaying the names of the planets, I tried the brute force solution, and it worked fine with little impact on performance. I make a postprocess: check every pixel of every rendered 2D frame, looking for 3D objects. I do this thanks to a function that IDX3D offers: scene.identifyObjectAt(x,y). When every pixel has been checked, I blit the name of every planet that has a minimum number of pixels displayed.
I don't know if this is such a horrible solution as I thought at first, but it works fine for my application.
Thanks for the tips you provided, it was significant to help me with the project.
Here is an image of the result:
[img=http://img71.imageshack.us/img71/2421/vtacticaphpconnombres5ws.th.png]
Edit: I forgot to say that finally I didn't draw distant stars. It wasn't a compulsory requirement, and I thought that leaving the background black would improve readability.
At last, I have finished my project. Finally I haven't used jPCT as the API for 3D graphics, primarily because of lack of time. I sticked with IDX3D, and concentrated in other non-3D aspects of the project. In fact, I believe jPCT would have been a better choice than IDX3D, and I would recommend it.
To solve the problem of displaying the names of the planets, I tried the brute force solution, and it worked fine with little impact on performance. I make a postprocess: check every pixel of every rendered 2D frame, looking for 3D objects. I do this thanks to a function that IDX3D offers: scene.identifyObjectAt(x,y). When every pixel has been checked, I blit the name of every planet that has a minimum number of pixels displayed.
I don't know if this is such a horrible solution as I thought at first, but it works fine for my application.
Thanks for the tips you provided, it was significant to help me with the project.
Here is an image of the result:
[img=http://img71.imageshack.us/img71/2421/vtacticaphpconnombres5ws.th.png]
Edit: I forgot to say that finally I didn't draw distant stars. It wasn't a compulsory requirement, and I thought that leaving the background black would improve readability.