View previous topic :: View next topic |
Author |
Message |
jim

Joined: 05 Aug 2005 Posts: 400 Location: In The Sun
|
Posted: Sat Oct 04, 2008 5:32 pm Post subject: XYZ Scale object (DarkPlaces) |
|
|
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 |
|
 |
Spike
Joined: 05 Nov 2004 Posts: 944 Location: UK
|
Posted: Sun Oct 05, 2008 2:45 am Post subject: |
|
|
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 |
|
 |
Urre

Joined: 05 Nov 2004 Posts: 1073 Location: Sweden
|
Posted: Mon Oct 06, 2008 6:48 pm Post subject: |
|
|
Spike: cool, will have to remember that.
<3 csqc _________________ Look out for Twigboy |
|
Back to top |
|
 |
|