POV-Ray : Newsgroups : povray.binaries.utilities : pgroammers Question. : pgroammers Question. Server Time
28 Sep 2024 18:52:23 EDT (-0400)
  pgroammers Question.  
From: Eitan Tal
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

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