Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Convert 3d coordinates to screen  (Read 3873 times)

0 Members and 1 Guest are viewing this topic.

SoundGuy

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 196
    • View Profile
Convert 3d coordinates to screen
« on: August 11, 2007, 03:32:41 AM »

I want my actor to "go back" and no "screen upwards", so i want to get the screen coordinated from a 3D coordinate where Z is reduced by a constant.
I need a funcition to convert from 3D coordinates to screen coordinates. looked around a bit in the help - didn't find anything, and it was too late for an answer in the IRC.

lemmeknow
Thanks!
Oded
Logged

pyros

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
    • View Profile
Re: Convert 3d coordinates to screen
« Reply #1 on: August 11, 2007, 01:47:54 PM »

use perspective projection... read Edward Angel "A top-down approach with OpenGL"  ;D
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Convert 3d coordinates to screen
« Reply #2 on: August 12, 2007, 09:39:01 AM »

There's currently no built-in script function for converting between 2D and 3D coordinates.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

SoundGuy

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 196
    • View Profile
Re: Convert 3d coordinates to screen
« Reply #3 on: August 12, 2007, 10:52:25 AM »

oh :-(

can you move this post to "feature requests" ?
Logged
 

Page created in 0.043 seconds with 20 queries.