COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### More manual texture co-ords - cylindrical

• Email
• Follow

```I have managed to manually specify texture co-ordinates for a planar
projection texture map - it turned out to be a lot easier than I thought.  I
now have to implement cylindrical texture maps.  I am loading low2 objects
and the help for cylindrical tmaps is:

The image is wrapped cylindrically around the major axis. r maps to
longitude (angle around the major axis).

I know the major axis and I know the bounding box of the object, can anybody
point me in the right direction for applying these co-ordinates?  I then
have to implement spherical but this will be easy if I know how to do the
cylindrical.

Thanks,
Allan

```
 0
Reply abruce (36) 2/23/2005 10:18:54 AM

See related articles to this posting

```Allan Bruce wrote:
> The image is wrapped cylindrically around the major axis. r maps to
> longitude (angle around the major axis).

Easiest, sorta backwards, way to do it, would probably be to rotate the
object to orient the object-space coordinatesystem according to the
cylindrical projection. Then you could convert all xyz-vertex
coordinates to cylindrical coordinates:

http://mathworld.wolfram.com/CylindricalCoordinates.html

- and rescale to the interval [0..1].

The rotation is probably done most easily using a basis-shift (consult
your linear-algebra book), but you need to decide on a default
orientation of the cylindrical projection (like, where does your image
split, what is "up" etc.)

> I know the major axis and I know the bounding box of the object, can
> anybody point me in the right direction for applying these
> co-ordinates?  I then have to implement spherical but this will be
> easy if I know how to do the cylindrical.

- same procedure (as last year, ms. sofie), only use
http://mathworld.wolfram.com/SphericalCoordinates.html

This will get you the basic projections - the rest is tweaking ;)

Hope this helps,
\\Mikkel Gjoel
```
 0

1 Replies
233 Views

Similar Articles

12/10/2013 11:56:57 PM
page loaded in 84220 ms. (0)

Similar Artilces:

texture co-ordinates
I am writing a program that will import Lightwave lwo2 objects. So far so good, I am succesfully parsing the file and can see the objects fine with the coloured materials. I have also parsed the texture data but dont know how to apply their texture co-ordinates. The lwo2 format gives: Center co-ordinates of texture (float x, y, z) Size of the texture (float x, y, z) Rotation of texture (float x, y, z) How can I use these values to specify the texture co-ordinates in OpenGL? Thanks, Allan ...

How do you plot a simple line from 2 co-ords?
Hello, This is my first time using matlab, for I have a project for my Math class in college (calculus 1) and I am having a little problem It seems that my code is not working. I have to draw a line, with 2 co-ords [(x1,y1) (x2,y2)] in my program] But whenever I get the plot to show up, the lines do not exist. I get the curve (I am trying to draw tangents to it) though, no tangent lines Can anyone be kind enough to supply me with the code that makes these lines show up? (My code was: plot(x1,y1,x2,y2)) Thank you for your time Philip Philip <Heero_Yuy_25@hotmail.com> wrote in news:eec...

How to Set Co-ord of Annotation-Note in sheet Format with Macro
Dear All, I am working on sheet formatting. 1. I have to restrict the co-ord of the notes. 2. Moreover, I have to set some notes which can be changed by my colleges and some motes being restricted to any changes. I have tried to add different layers on sheet format so as to isolate different types of notes. However, it is found to be inconvenient. I am trying to write programme to fix it, but I have no idea how to start... Please HELP Best Regards Kit ...

I am having problem with texture shader on the dependent texture. I am using GL_DEPENDENT_GB_TEXTURE_2D_NV. texture1 uses the shader results of texture0. it works for the following case: texture0 GL_TEXTURE_2D texture1 GL_TEXTURE_2D but I have problem on the following cases: texture0 GL_TEXTURE_RECTANGLE_NV texture1 GL_TEXTURE_2D or texture0 GL_TEXTURE_RECTANGLE_3D texture1 GL_TEXTURE_2D I have made GL_TEXTURE_RECTANGLE_NV and GL_TEXTURE_RECTANGLE_3D working individually. I am using geoforcefx 5950 ultra, with the latest driver 6629. thank you, Dale Try an older driver, I dont have t...

Solutions Manuals, Instructor Manuals, Test Banks collection 2012 #8
Hello, We would like to inform you that we have updated our list with the following new titles. You can contact us directly at Student.p24(at)Hotmail(dot)com . If the title you are looking for is not listed, do not hesitate to contact us, we will try to help. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 2011 Federal Taxation, 5th Edition 2011, Pratt.Kulsrud, Instructor Manual & Solutions Manual 2011 Federal Taxation, 5th Edition 2011, Pratt.Kulsrud, Test Bank 21st Century Astronomy, 3rd Edition, Blumenthal.Hester.Kay.Smith.Voss, Instructor Manual 21st Century Astronomy, 3rd Edition, Blumenthal.H...

Solutions Manuals, Instructor Manuals, Test Banks collection 2012 #2 #6
Hello, We would like to inform you that we have updated our list with the following new titles. You can contact us directly at Student.p24(at)Hotmail(dot)com . If the title you are looking for is not listed, do not hesitate to contact us, we will try to help. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 2011 Federal Taxation, 5th Edition 2011, Pratt.Kulsrud, Instructor Manual & Solutions Manual 2011 Federal Taxation, 5th Edition 2011, Pratt.Kulsrud, Test Bank 21st Century Astronomy, 3rd Edition, Blumenthal.Hester.Kay.Smith.Voss, Instructor Manual 21st Century Astronomy, 3rd Edition, Blumenthal.H...

Updated List 2011. Solutions Manuals, Instructor Manuals & Test Banks Collection. Largest Collection Over The Net !!
We would like to inform you that We have updated our list with the following titles !! Note: This is the updated part of our full list. ( testbanknet.blogspot(dot)com ) You can contact us directly at REQUEST(at)TESTBANK(dot)NET Or visit our website for more information (TESTBANK.NET) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Accounting Information Systems, 9th Edition 2012, Gelinas.D...

Updated List 2011. Solutions Manuals, Instructor Manuals & Test Banks Collection. Largest Collection Over The Net !!
We would like to inform you that We have updated our list with the following titles !! Note: This is the updated part of our full list. ( testbanknet.blogspot(dot)com ) You can contact us directly at REQUEST(at)TESTBANK(dot)NET Or visit our website for more information (TESTBANK.NET) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Accounting Information Systems, 9th Edition 2012, Gelinas.D...

removing texture
I have a part with texture applied on many features and faces. Is it any fast way to remove all texture from everything(features, faces etc)? Is there a Texture Property manager that shows all textures on that part Thanks You could probably write a macro that would do it. "Alex" <alexkuzn.remove@pacbell.net.remove> wrote in message news:020Ac.63\$SE.59@newssvr25.news.prodigy.com... > I have a part with texture applied on many features and faces. > Is it any fast way to remove all texture from everything(features, faces etc)? > Is there a Texture Property manager tha...

Multiple Textures
Hi, I have a terrain, where I am blending textures. I want one large texture, but when the user gets closer sees the detailed textures blended in as well. The large texture has their texture co-ordinates (and is not tiled), where as the detailed "swatches" are much smaller and I would want to tile them. So the point of the problem is that I can't have two texture coordinates for all the textures (or can I? - never seen this though), and I don't intend on making a fragment shader etc.... Is there an easy way of resolving this without breaking up the larger image into simila...

texturing triangles
Hello All, Why can't I put any texture on a triangle? I manage more complicated polygons. Any suggestions gratefully received. Ivan. ivan danicic wrote: > Hello All, Why can't I put any texture on a triangle? I manage > more complicated polygons. Any suggestions gratefully received. > Ivan. Please post some code, you question is so generic, we can't help you this way. Wolfgang Draxinger -- ivan danicic wrote: > Hello All, Why can't I put any texture on a triangle? How would we know? > I manage more complicated polygons. Any suggestions gratefully recei...

Textureing question...
I know you can render a figure as wireframe...is it possible to bake the "wireframe" on a surface? I'd like to use that as a basis for a new texture, if it's possible... -- Gareee� Homepage: http://www.fortunecity.com/tattooine/ellison/86/mainframe.htm Custom Figures, Wallpapers and more! I don't *think* you can bake the drawn edges in the standard setup. However, you can just export the UV map from modeler as an EPS file. You'll need to have tho object UV mapped to bake successfully too. If you turn off Draw Grid when you export the EPS, the result is a clean ...

Writing Textures
Hello Everyone, I want to copy the contents of the framebuffer into a texture and have it as an array of values and also save it as some sort of image file. I know that I have to use the glCopyTexImage2D function, but I don't understand how to specify the array in which the values will be stored and I don't know which function to use to write the values into an image file. When I use the GL_TEXTURE_2D as the target parameter for glCopyTexImage2D, where exactly are the texels stored? I use the glGenTextures and glBindTexture to generate a texture name and specify it as the default te...

Manual Fix
I have some questions. If you are booting up Linux and something goes wrong at bootup, what do you do? Linux just hags, so do you do at Control-Alt-Delete to shut things down or what? If you try and boot up Linux and are told you have got errors or the system was not shut down properly, Linux will try and fix the problems. If it does you are fine, but if it does not you are usually told things must be fixed manually. How does one fix the errors manually? -- Edward S. Baiz Jr. (Gamer) HADES 060: 256meg Ram, Yamaha & Sony CDRW Drive, 1 gig Jaz Drive, MicroTek E3 Scanner, Mach 6...

Text Texture
Hi I would like to have some "Text texture" in a part face. I couldn't find such textures available in Solidworks. Any body have any idea? Thanks JRat Watch do you mean by "text texture"? SEA I mean, some text strings should appear in face of a solid. For example in an existing building model I would like to show some Coulmns tobe cut. For this it will be very easy to identify the column by changing the appearance as well as printing some TEXT textures in that particular face. (Like TO BE CUT..TO BE CUT..) Thanks., JRat "JRat" <j.rathakrishnan@flsm...

texture memory
Can someone tell me how to determine when you have run out of texture memory in OpenGL? bob@coolgroups.com wrote: > Can someone tell me how to determine when you have run out of texture > memory in OpenGL? If you search the archives of this group you will find that this question gets asked regularly, and that you cannot reliably do it. Even if you could it would mean little on modern hardware with drivers smart enough to decide how best to use texture memory as opposed to main memory to store each texture. -- Phil Frisbie, Jr. Hawk Software http://www.hawksoft.com bob@coolgrou...

Optimization manual updated
It is now ten years since I first published my optimization manual. It has been so successful that I feel I have to keep it updated. I have been told that it is used by compiler makers, so I decided to include stuff relevant to compilers. The long awaited update is now available at http://www.agner.org/optimize/. The manual has become so big that I had to split it into five volumes. It covers CPU-specific optimization. Microarchitecture details not found anywhere else. Complete lists of instruction timings, execution unit throughput, micro-operation breakdown, etc. for the latest x86 microp...

weird texturing problem
hi! i've been trying to find an explanation for my problem for days now, but i couldn't come up with one, so i'm trying my luck in here ;] i've implemented a renderer which supports bezier patches, so far so good. first they are textured correctly, but when getting to close, the texture simply disappears and the whole mesh is rendered solid white http://stud3.tuwien.ac.at/~e9925546/correct.jpg http://stud3.tuwien.ac.at/~e9925546/incorrect.jpg texturebinding, texturecoordinates, vertexcoords are the same for both images, so i don't really know what's going on here. c...

Photo on a textured surface
Would the best to 'place' a photo on a textured surface (so that the texture shows through) be to put the photo layer on it and drop the opacity of the photo until the texture shows through? Thanks, MR My preference in this is a bit more complex than your thoughts and most people's tendancies. Simply because a) I like to know more than one way to do something and b) you can control the affected area more directly without affecting areas around it. Start with Three Layers: Original Background/Textured Surface Photo Copy of Original Background/Textured Surface Leave the origi...

SW MANUAL info
Can the SW manual be purchased, independently of the website? It appears as if you have to at least initially have subscription service access to get to the 1000 page reference manual. Once you log into subscription services you have two choices. One is to download the PDF file (12 MB). That can be printed by you like any other PDF file. The other choice you have is to download a form that you fill out and send into Kinko's with \$29.95 to get a copy printed and bound. I often get other things printed and bound at Kinko's. \$29.95 is a substantially better price than you normally ...