Author Topic: Drawing bitmaps which are NOT necessarily facing the screen.  (Read 2269 times)

0 Members and 1 Guest are viewing this topic.

Offline LuaPineapple

Drawing bitmaps which are NOT necessarily facing the screen.
And so it came to pass that DRADIS would be drawn with nice 'n shiny DDS textures.

Alpha Channel? Check.
Texture Load & Display? Check.
3D Projection? Failed.

I've tried just about anything I can think of and have been poking around view perturbations for the last few hours, trying to get a bitmap quad to draw that WOULDN'T necessarily face the camera head on. (Apply directly to the forehead!)

Any ideas?
Axem      incoming jump signature
Axem      pineapple configuration
Ace1999  AAAAAAH! It's so sharp and pointy!
Axem      obviously of shivan design

 

Offline DaBrain

  • Screensniper
  • 212
    • Shadows of Lylat board
Re: Drawing bitmaps which are NOT necessarily facing the screen.
Rotating mesh + render to texture?

Instead of loading a "particle/glowoint/sprite", you could try a POF.
--------------------------------------------------
SoL is looking for a sound effect artist
Please PM me in case you want to apply
---------------------------------
Shadows of Lylat - A Freespace 2 total conversion
(hosted by Game-Warden)
----------------------------------

 

Offline LuaPineapple

Re: Drawing bitmaps which are NOT necessarily facing the screen.
 :blah:
Could work, would work. The hackz level has gone up though. I'll try that.



(Personally I still think it's silly that we can't draw sprites which aren't facing the camera.)
Axem      incoming jump signature
Axem      pineapple configuration
Ace1999  AAAAAAH! It's so sharp and pointy!
Axem      obviously of shivan design

 

Offline redsniper

  • 211
  • Aim for the Top!
Re: Drawing bitmaps which are NOT necessarily facing the screen.
I though sprites faced the camera by definition.
"Think about nice things not unhappy things.
The future makes happy, if you make it yourself.
No war; think about happy things."   -WouterSmitssm

Hard Light Productions:
"...this conversation is pointlessly confrontational."

 

Offline Topgun

  • 210
Re: Drawing bitmaps which are NOT necessarily facing the screen.
yep, they do. it's too much processor work to distort the image to make it otherwise.

 

Offline redsniper

  • 211
  • Aim for the Top!
Re: Drawing bitmaps which are NOT necessarily facing the screen.
So you could just map your bitmap to a plane and then do whatever you want with that, right?
"Think about nice things not unhappy things.
The future makes happy, if you make it yourself.
No war; think about happy things."   -WouterSmitssm

Hard Light Productions:
"...this conversation is pointlessly confrontational."

 

Offline Topgun

  • 210
Re: Drawing bitmaps which are NOT necessarily facing the screen.
yep, that's regular games do it. or they bake the animation to a sprite.

 

Offline Swifty

  • 210
  • I reject your fantasy & substitute my own
Re: Drawing bitmaps which are NOT necessarily facing the screen.
Why don't you draw a simple quad with the sprite set as a texture?

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Drawing bitmaps which are NOT necessarily facing the screen.
gr.drawSprite(texture,radius,position,orientation) ?
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
Re: Drawing bitmaps which are NOT necessarily facing the screen.
I'm assumeing we are talking about scripting here?

does scripting have a basic draw polygon function? if so then what you do is have four points, we will call them a, b, c, and d (they should probably be in an array) a and b are on the 'top' c and d the 'bottom' a and d the 'right', b and c 'left'

a-b
| |
d-c

now lets give the thing a radius r

all you have to do is multiply the orientation matrix's up vector by r and negative r, this will give you the up and down vectors. do the same to the right vector to get right and left vectors.

a=up+right
b=up+left
c=down+left
d=down+right

set the texture and draw those four points as a polygon.

???

profit
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Drawing bitmaps which are NOT necessarily facing the screen.
you know you could probibly fake it with drawTechModel()

create a ship wich is just a 2 sided plane with a mostly transparent texture of yur dradis circle. then use it to draw a tech model over the radar. this should give you those pretty little dradis lines.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN