Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

2D Sprite in 3D Space

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 Code Fox   GDNet+   

3043
Like
0Likes
Like

Posted 23 December 2011 - 01:07 AM

I'm using java right now to experiment with 3D spaces, and manipulating the objects with in. ( Raycasting is fun ) .

I would like to know if there is a guide for making a 2D sprite rotate to always face the camera angle of the player .
Just like Doom, Wolfenstein 3d, or Runescape Classic.

Thank you.

I cannot remember the books I've read any more than the meals I have eaten; even so, they have made me.

~ Ralph Waldo Emerson

Code_Fox_Sig.png


#2 dejaime   Members   

4220
Like
0Likes
Like

Posted 24 December 2011 - 09:08 AM

That depends 100% on how you're implementing your game!
I guess noone here will be able to help you really much without access to the code, and few will have time to read it and answer you =/

#3 swiftcoder   Senior Moderators   

18214
Like
1Likes
Like

Posted 24 December 2011 - 09:35 AM

The general technique is called 'billboarding', in particular you will want to research 'camera-aligned billboards'.

Tristam MacDonald - Software Engineer @ Amazon - [swiftcoding] [GitHub]


#4 dejaime   Members   

4220
Like
1Likes
Like

Posted 24 December 2011 - 12:22 PM

I still don't think I'll be able to point him to a good guide without knowing if he's using java 3d api or Ogre4j or something else.
As asked:

I would like to know if there is a guide for making a 2D sprite rotate to always face the camera angle of the player .






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.