Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


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 Shippou   Members   -  Reputation: 1668

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.

 Reactions To Technologies:
1. Anything that is in the world when you’re born is normal and ordinary and is just a natural part of the way the world works.
2. Anything that's invented between when you’re fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it.
3. Anything invented after you're thirty-five is against the natural order of things.

- Douglas Adams 2002


 


Sponsor:

#2 dejaime   Crossbones+   -  Reputation: 4046

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: 10229

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: 4046

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