POV-Ray : Newsgroups : povray.binaries.utilities : pgroammers Question. Server Time
31 Oct 2024 23:31:17 EDT (-0400)
  pgroammers Question. (Message 1 to 3 of 3)  
From: Eitan Tal
Subject: pgroammers Question.
Date: 12 Feb 2000 06:03:12
Message: <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

From: Ian Burgmyer
Subject: Re: pgroammers Question.
Date: 28 Feb 2000 03:37:03
Message: <38ba33af@news.povray.org>
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)

From: Mark Simonelli
Subject: Re: pgroammers Question.
Date: 21 May 2000 22:46:18
Message: <39289f7a@news.povray.org>
Try this site:  http://www.goodnet.com/~andrewa/vbasic/vb3d/vb3d.htm

It has three VB tutorials for drawing 3d objects and applying textures to
them


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.