To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.rayOpen lugnet.cad.ray in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Ray-Tracing / 746
  Do I use Dat2AutoCAD or is there a better way?
 
For a project I am working on, I need a picture of a datapad (which I posted to .models) with text displayed on its screen (and I don't mean a perfect front view). I rendered the model in POV-Ray, but have no idea of how to get the text on it, (...) (23 years ago, 12-Mar-01, to lugnet.cad.ray, lugnet.cad.dev)
 
  Re: Do I use Dat2AutoCAD or is there a better way?
 
POV-Ray can use bitmaps as surface textures. I've never done this myself, but I've seen it done. -John Van "Ryan Farrington" <ryanjf@ifriendly.com> wrote in message news:002501c0ab09$c8...dly.com... (...) (23 years ago, 12-Mar-01, to lugnet.cad.ray, lugnet.cad.dev)
 
  Adding an image_map (used to be Re: Do I use Dat2AutoCAD or is there a better way?)
 
(...) but I've seen it done. (...) I did some experimenting with this last night, and I couldn't get it to work. I don't know where to put the image_map command to add the image. I have this object: object { _screen_ } And I want to put this image (...) (23 years ago, 13-Mar-01, to lugnet.cad.ray, lugnet.cad.dev)
 
  Re: Adding an image_map (used to be Re: Do I use Dat2AutoCAD or is there a better way?)
 
Ryan, Put the image_map inside a pigment statement, which is in turn inside the object statement. Like this: object { _screen_ pigment { image_map { gif "classicspacelogo.gif" interpolate 2 filter all 0.8 } } } I'm not sure what you want to do with (...) (23 years ago, 14-Mar-01, to lugnet.cad.ray)
 
  Re: Adding an image_map
 
Thanks for the help, Coby! (...) I put this into the pov file and got something to appear on the object. But when I render it, all that you can see of the bitmap is a mess of gray pixels. Cheers, --Ryan (23 years ago, 15-Mar-01, to lugnet.cad.ray)
 
  Re: Adding an image_map
 
Hmmm, a mess of grey pixels isn't good, but at least something appeared on the object so that's a start. I think the next step would be to check the scaling and translation of the map. Here's a pertinent paragraph from the docs: // By default, the (...) (23 years ago, 15-Mar-01, to lugnet.cad.ray)
 
  Re: Adding an image_map
 
Okay, I got it to work! I hadn't known that the picture was crammed into the 0,0/1,1 square. So the mass of gray pixels was in fact the picture, tiled beyond recognition. :) Thanks again, Coby! --Ryan (23 years ago, 16-Mar-01, to lugnet.cad.ray)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR