Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


2D Sprite in 3D Space


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   Members   -  Reputation: 2260

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.

A computer once beat me at chess,

but it was no match for me at kick boxing.

~ Emo Philips


Sponsor:

#2 dejaime   Crossbones+   -  Reputation: 4119

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   -  Reputation: 13229

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]


#4 dejaime   Crossbones+   -  Reputation: 4119

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.



PARTNERS