Re: questions about JKL/Spec items to CA/Alexei


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]

Posted by MadMax on January 15, 1998 at 17:05:04:

In Reply to: Re: questions about JKL/Spec items to CA/Alexei posted by Alexei Novikov on January 15, 1998 at 15:09:10:

> > I'm trying to parse a JKL file but having some slight dificulity in a couple
> > of sections.


> Coordinates of the texture in texels (texture pixels) at this vertex.

> > and what do the "u" and "v" texture coordinates mean?

> U is horizontal coordinate, V is vertical. Say you have a square texture
> 64x64 and a square surface. To apply the texture to the surafce to fully cover
> it with a single tile, you need to set the texture coordinates as follows:

> vertex 0 - 0,0
> vertex 1 - 64,0
> vertex 2 - 64,64
> vertex 3 - 0,64

> Nothing fancy.

So in this example is the square surface 64X64 also? If the SquareTexture is 32X32 and the surface is 64X64 what do the TextureVertex points look like? I'm guessing:

Vertex 0 :0,0
Vertex 1 :32,0
vertex 2 :32,32
vertex 3 :0,32

This (I guess) would be how you would stretch the texture over a large surface, or if you provide negative values, you would shift the texture left? It seems that the values in some JKL files are really large/small numbers (e notation) is this because JED automatically is setting the position of the texture?

Why aren't the number of texture vertices and the number of world vertices the same? I'm guessing that JED will eliminate shared vertices between surfaces when writing the JKL out?
> Clear all vertex intensities.
> For each vertex and light:
> If vertex is in range of the light
> If no surface blocks the vertex from the light
> Calculate the intensity of the light at the distance of the vertex
> Add it to vertex's intensity

So the Vertex's Intensity (with only one light in the level) is a relation to the intensity of the light and the range of the vertex to the light. The light "objects" in JED are specific to JED, meaning that they are not stored in the JKL directly. Correct? Thanks.. Looking at the properties for a Light in JED there is a range and an intensity. From these two properties, an extremely intense light value and a small range value would produce some interesting results! When determining the intensity of the light at the vertex, would you mind disclosing what ratio you use for JED?


Thanks Alexei

mad max


Follow Ups:



Post a Followup

Name:
E-Mail:
Subject:
Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]