Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000816 [Croquet] Jasmine feature always 01-10-05 22:06 01-12-05 21:20
Reporter elenzil View Status public  
Assigned To
Priority normal Resolution open  
Status new  
Summary 0000816: [ENH] TQuadSubdivided
Description It's always a pleasant distraction to implement a primitive!
---------------------------
TQuadSubdivided
Orion Elenzil 20050107


This is a simple primitive which is just a quad subdivided into triangles
for better lighting effects.

(For example, since gouraud shading is only calculated at vertices
 and all the pixels in between are merely interpolation,
 a huge quad with only 4 vertices won't notice a small
 point light near its center.)

The quad is subdivided into sub-quads or "cells",
each of which is composed of four triangles, like this:


 --------------
| \ / |
| \ / |
| \ / |
| X |
| / \ |
| / \ |
| / \ |
 --------------


use extentX: y: to set the zero-centered extent of the quad
use cellsX: and cellsY: to set the number of sub-cells (default 1)
use texRepU: and texRepV: to set the number of texture repetitions
  (sorry, no texture offset yet)

ToDo:
Texture Offset
More efficient openGL loop ?
  - this depends on the gl caching mechanism.
Additional Information
Attached Files  TQS.png [^] (76,805 bytes) 01-10-05 22:06
 TQ.png [^] (19,087 bytes) 01-10-05 22:07
 TTQS.png [^] (114,044 bytes) 01-10-05 22:07
 TTQ.png [^] (81,807 bytes) 01-10-05 22:07
 TQuadSubdivided.st [^] (5,915 bytes) 01-10-05 22:07
 TCubeSubdivided.st [^] (3,395 bytes) 01-12-05 21:19
 TCubeSubdivided1.png [^] (94,720 bytes) 01-12-05 21:20
 TCubeSubdivided2.png [^] (69,464 bytes) 01-12-05 21:20

- Relationships

- Notes
(0001050 - 1085 - 1235 - 1235 - 1235 - 1235 - 1235)
elenzil
01-10-05 22:27

er.. subdivided like this ?

.---------------.
|.\.........../.|
|...\......./...|
|.....\.../.....|
|.......X.......|
|...../...\.....|
|.../.......\...|
|./...........\.|
.---------------.


.. or possibly like this!
 --------------- 
| \           / |
|   \       /   |
|     \   /     |
|       X       |
|     /   \     |
|   /       \   |
| /           \ |
 --------------- 

or maybe this -
 ---------------
| \           / |
|   \       /   |
|     \   /     |
|       X       |
|     /   \     |
|   /       \   |
| /           \ |
 ---------------
 

- Issue History
Date Modified Username Field Change
01-10-05 22:06 elenzil New Issue
01-10-05 22:06 elenzil File Added: TQS.png
01-10-05 22:07 elenzil File Added: TQ.png
01-10-05 22:07 elenzil File Added: TTQS.png
01-10-05 22:07 elenzil File Added: TTQ.png
01-10-05 22:07 elenzil File Added: TQuadSubdivided.st
01-10-05 22:27 elenzil Note Added: 0001050
01-12-05 21:19 elenzil File Added: TCubeSubdivided.st
01-12-05 21:20 elenzil File Added: TCubeSubdivided1.png
01-12-05 21:20 elenzil File Added: TCubeSubdivided2.png


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
47 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker