Inside3D!
     

XYZ Scale object (DarkPlaces)

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
jim



Joined: 05 Aug 2005
Posts: 400
Location: In The Sun

PostPosted: Sat Oct 04, 2008 5:32 pm    Post subject: XYZ Scale object (DarkPlaces) Reply with quote

I didn't find anything in the dpextensions.qc.. and so I was wondering if it's possible to scale a model to have different scale amounts in XYZ dimensions?

This behaviour would be ideal for Shadow People or Ghosts. I would like to have them first appear like flat 2D, but when player focus more on them, they become 3D. Which means I need to have one dimension scaled to 0 and then scale it back to normal when the time comes.

Maybe there could be some jittering in their scale, so they're not always scaled flat in the same dimension. Their scale should probably be dependent on who's viewing them and where he's viewing them.
_________________
zbang!
Back to top
View user's profile Send private message Visit poster's website
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Sun Oct 05, 2008 2:45 am    Post subject: Reply with quote

not normally.

You would need to use csqc to access this feature, as the RF_USEAXIS flag is suitable for this. Using regular qc, you can only use the scale field, however, this only allows you to scale uniformly, and not on a per-axis basis.
Alternatively you might be able to use shaders and multiply away a single axis somehow, and then change frames to make them fully 3d again.

RF_USEAXIS, with a bit of mathematical knowhow, allows you to flatten the models on arbitary planes, rather than just along an axis. Which means they can turn to face you, but remain 2d against a wall.
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
Urre



Joined: 05 Nov 2004
Posts: 1073
Location: Sweden

PostPosted: Mon Oct 06, 2008 6:48 pm    Post subject: Reply with quote

Spike: cool, will have to remember that.

<3 csqc
_________________
Look out for Twigboy
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group