|
|
on simple QB / VB code, generally, how do I veiw a polygon
(squarepolygon),
on a given camera location?
option 1
dim polygon(4,3)
dim camera(3)
dim matrix(CamSizeX,CamSizeY)
' insert code here
for x = 1 to CamSizeX
for y = 1 to CamSizeY
pset (x,y),matrix(x,y)
next
next
option 2
dim polygon(4,3)
dim camera(3)
dim pts(4,2)
' insert code here
for N = 1 to 4 'polygon has 4 corners
pset pts(N,1)(pts(N,2) '1 and 2 are for PTS(N,X) and PTS(N,Y)
next
On RDS 3d format - RandonDotStereogram.
how does it work?
Post a reply to this message
|
|
|
|
I can't really tell you, but attached it a QB program that can manipulate a
3D spaceship. It will probably give you a pretty good idea on how to do it.
It's renderer is really fast, so you won't have a speed problem. Enjoy!
I'm not really sure if I understand the question completely, however.
--
This message brought to you by:
-=< Ian (the### [at] hotmailcom >=-
Please visit my site at http://spectere2000.cjb.net! :)
Eitan Tal <eit### [at] netvisionnetil> wrote in message
news:38A53D5D.71AC010C@netvision.net.il...
> on simple QB / VB code, generally, how do I veiw a polygon
> (squarepolygon),
> on a given camera location?
>
> option 1
> dim polygon(4,3)
> dim camera(3)
> dim matrix(CamSizeX,CamSizeY)
>
> ' insert code here
>
> for x = 1 to CamSizeX
> for y = 1 to CamSizeY
> pset (x,y),matrix(x,y)
> next
> next
>
> option 2
> dim polygon(4,3)
> dim camera(3)
> dim pts(4,2)
>
> ' insert code here
>
> for N = 1 to 4 'polygon has 4 corners
> pset pts(N,1)(pts(N,2) '1 and 2 are for PTS(N,X) and PTS(N,Y)
> next
>
> On RDS 3d format - RandonDotStereogram.
>
> how does it work?
>
Post a reply to this message
Attachments:
Download '3DEXP2.BAS.txt' (13 KB)
|
|