Ray Tracing question

Hi all,
In Java2D the tracing algorithm can handle effectively primitive shapes, like cubes, spheres etc, mapping the shapes from 3D to 2D. So we can, for example, rotate the whole "scene" and have a 3D illusion of the world. But what about images? The ray tracing algorithm uses the 3D coordinates system, so how can we handle the 2D representation of an image? I know that in Java3D there are special Loaders that load a description of an image and tranform it appropriately in the 3D world. Is there any way to have a 3D representation of an image in Java2D?
Thanks

helmik,
LabVIEW does not do symbolic math.  Once you have the equations solved on paper or reduced to a set which can be solved numerically, tehn you can program it in LV.
When I look at your math in the first post, I see that in (3) you describe an equation in x and a. However, this is not a quadratic equation but a fourth order polynomial with terms like a^2*x^2 and 2*a^2*x*y_0. So this is not so easily solved.
Is not the tangent to the sphere at right angles to the radius at that point? The angle of the radius can be calculated from x_0 and y_0 and the center of the sphere. Then add 90 degrees. One arctangent and no complicated equations.
Lynn

Similar Messages

  • Complicated easy question - ray tracing

    Hello,
    i am working currently on one project - i have an optical system (some prisms, some lenses etc) and i want to make a VI to calculate propagation of a light ray - something like ray tracing.
    I know that labview is not the perfect platform to deal with this issue, however i still would like to try.
    My problem is as following: i want to calculate the propagation of a ray through a lens. I have the ray with some coordinate (y=const) and a plano convex lens - the front of a lens is a piece of a sphere. To calculate the propagation (using snell law) I have to find an angle between the ray and the line which is tangent to this lens-sphere in the point where my light beam hits the lens.
    My procedure (on the piece of paper):
    1.i know the coordinates of a center of a sphere (let's take (0,0)) and its radius r (x^2+y^2=r^2). I know the value of y=y_0 for which the ray enters the lens.
    then i can calculate the x_0: x_0^2+y_0^2=r^2. Now i know the point where light enters the lens (x_0,y_0)
    2.then just the usual procedure of finding equation for a line tangent to sphere (y=a*x+b):
    i put y_0 and x_0 to this equation:
    y_0=a*x_0+b
    and i can remove one unknown value (for example b): y=a*(x-y_0)+x_0
    3.then i put such equation into the equation for sphere (x^2+y^2=r^2) and this is the quadratic equation which has only one unknown value x and one free parameter: a.
    4.beacause i want to have tangent line, so it should have only one common point with sphere - so the quadratic equation should have determinant equal to zero (only one solution for x). This gives me an equation for a. I should find the value of a which satisfy this equation and then i know this tangent line and have the solution! uf....
    Unfortunately i still didn't find a solution to implement this in labview (and i'm motivated beacuse most of the work for this project is already done). I was trying with the formula parsing and so on, but i didn't succeeded. 
    I will be really grateful for any hints or help!
    Solved!
    Go to Solution.

    helmik,
    LabVIEW does not do symbolic math.  Once you have the equations solved on paper or reduced to a set which can be solved numerically, tehn you can program it in LV.
    When I look at your math in the first post, I see that in (3) you describe an equation in x and a. However, this is not a quadratic equation but a fourth order polynomial with terms like a^2*x^2 and 2*a^2*x*y_0. So this is not so easily solved.
    Is not the tangent to the sphere at right angles to the radius at that point? The angle of the radius can be calculated from x_0 and y_0 and the center of the sphere. Then add 90 degrees. One arctangent and no complicated equations.
    Lynn

  • Ray tracing fault won't allow me to use AE

    Hi guys,
    I just downloaded the trial version of AE from the Adobe website. But when I open it, I recieve an error saying that
    ray-tracing on the GPU requires an approved NVIDIA graphics card. I read all the other discussions, but I cannot
    change anything because AE closes itselfs. Where can I fix the problem ?

    FAQ: What information should I provide when asking a question on this forum?
    We don't even know what version of AE you downloaded or what OS you're using.

  • Ray tracing not working

    I get the 'Out of paged mapped memory' when I try to make 3D titles.
    IMac 2011 - the 6970 graphics card - 16Gb RAM
    Could this be yet another incompatibility between CS6 and the 2011 Imac (ie. the 6970 card which Adobe refuse to support)?
    Thanks in anticipation of a fix!!

    Hi Todd,,
    When I try to change the Renderer pull down top right of the composition window to Ray-Traced 3D, the composition settings window opens on the Advanced tab and when I change the Renderer pull down to Ray-Traced I get the following error message in a window headed (5070::0):
    After Effects error: Ray-traced 3D: Out of paged mapped memory for ray tracer. (5070::0)
    Screen shot attached.
    To answer those questions:
    version: 11.0.1.12
    OSX 10.7.5
    ProRes 422(HQ) 1920 x 1080 23.98fps
    I am trying to make a title that I have applied via 'Track Camera' into a 3D one. This has never worked.
    Other software running is Premiere CS6
    No 3rd party effects
    2011 Imac 3.4GHz i7, 16Gb RAM, 6970 Graphics card, 4 core. One 6Tb Thunderbolt hard drive connected (although working of internal drives at this time)
    No 3rd party I/O stuff
    Not using Render Multiple frames ......

  • Effects Don't work with Ray-Traced 3D?

    Hello,
    I'm working on a 3D logo for a company, and I'm trying to snaz what I have done with some effects, but the effects don't work. For example, I tried adding the CC Light Wipe Effect, but it will only show up when I switch back to the classic 3D renderer. Google searches aren't exaclty effective when I my serach quiere has "Effects" and After Effects" in it, so I'm forced to come here looking for the answer.
    Are effects supported in this new renderer? If so, how do I get them to work?
    Thanks

    Pre-composing and then switching off Ray-traced rendering in the main comp gives you the ability to apply effects to the pre-comp. This may or may not work for your situation.
    Another option is to pre-render your Ray-traced work and then apply effects to the footage. There's almost always something you can do if you think about it for a while.
    Still another option is to put a 2D adjustment layer above your 3D Ray-traced layer and apply the effect there.

  • Problem with noise/artefacts in AE6 Ray Traced mode.

    I'm having a problem with some kind or weird artefacts appearing on parts of an imported Illustrator layer. Here's the import procedure I'm using:
    In AE6 I switch to Ray Traced 3D mode, then I make a new comp, add a camera, import my Illustrator file, drag it into the comp. Then I right-click on the Illustrator file in the comp and and select "create shapes from vector layer" then make the layer 3D. I can extrude etc. but for the sake of this post, I didn't do that. I get the artefact regardless.
    Here's a cropped portion of my Illustrator file showing the problem:
    http://img99.imageshack.us/img99/74/linesc.jpg
    Here's another screen-cap showing the problem from a different angle:
    http://img717.imageshack.us/img717/4757/lines2.jpg
    The sample image is in full res and set to AE's "final quality" mode.
    I've tried different setting for the render quality (the same image is set to 10), but it seem the higher the quality I set it to, the more obvious the artefacts become!
    I've added no lighting or anything else to the scene, jut the camera and the AI file. I've also inspected the Illustrator file inside Illustrator and I cannot see anything at all that can be causing this problem. Is it perhaps an export setting problem in AI?
    These lines only appear when I use the "create shapes from vector layer" option.

    Thank you very much for your reply.
    Could you please explain to me how to import the paths in the manner you describe? I'm not overly familiar with Illustrator, other than loading and saving artwork.
    If it's any help, here is the Illustrator file as supplied to me: homepage.ntlworld.com/mike1962/cnet.ai
    Thanks,
    Mike.

  • Anyone know if After Effects supports the Navida GTX750 graphics card for ray-tracing?

    Anyone know if After Effects supports the Navida GTX750 graphics card for ray-tracing?

    All GPUs supported for GPU acceleration of the ray-traced 3D renderer are listed in the system requirements:
    System requirements | After Effects

  • Why does my font/text change when I switch from Classic 3D to Ray traced 3D in After Effects?

    My font/text changes when I switch from Classic 3D to Ray traced 3D. Why is it doing this? Also, I cant get the font/txt to look the same after I switch from Classic to Ray traced. How can I get it to look the same?

    I am pretty new to After Effects so I hope it's not my inexperience that's causing the problem. (It probably is)
    I just updated to the most current version of AE.
    I am on a mac pro late 2013 12GB 6 core. Running OSX 10.9.4
    Okay so after looking at it a little closer, I think the color is what mostly changes. The first screenshot is the what the text look like with Classic 3D and the second screenshot is what it looks like after I change it to Ray traced 3D. Also under the "Mode" section..the pull down that says "Normal" disappears. I'm wondering why the font color is changing?

  • Making a Ray-Traced image expand

    Running CS6 on Mac OS.  I was wondering if you could do something like a stroke reveal effect like you would for a fake handwriting effect work on an extruded image.  Like if I had an extruded Q, could I make it "grow" in a circle if I'm usuing Ray-Traced (which I know is rather limited).  I'm open to any suggestions.  I'm not getting my hopes up on this one but I'm hoping someone might have a creative idea at least how to cheat and get some kind of similar effect.

    The raytracer responds to animation in extruded shape layers, which can include any Merge Paths operations like subtracting stuff from shapes with otehr shapes and animate the cutting object to create a reveal...
    Mylenium

  • Gt645m not supported for ray tracing?

    Hello guys recently i bought a laptop with 645m GPU its MSI c61 was having 2nd thought of buying the other laptop which has 650m because of $250 difference and when searched for the both GPU specs its almos the same so i just bought gt645m instead and use the $250 on SSD but my gawd now i am in deep trouble.. because gt 645m is not supported by after effects and in this site it says this video card is OEM..
    http://www.studio1productions.com/Articles/AfterEffects.htm
    when i go to preferences on AE cs6 the GPU is greyed and wont let me choose it so its CPU in default. sadly i cant return it now cause i already bought the ssd and have no budget at all
    Is there anyway that i can use this card? for AE and Ppro? geezuz cries..

    ok i did that..
    and so i got this error
    After Effects error: Ray-traced 3d: Initial shader compile failed. (5070 :: 0)
    and when i removed my card from the list the error is gone . and GPU is not supported again .. of course

  • When support After Effects Ray-traced 3D the GPU of the new iMac with retina display (GPU: AMD Radeon R9 M295X 4GB)?

    I would like to know whether After Effects CC Ray-traced 3D support the GPU of the new iMac with retina display.

    It never will. This is nVidia-exclusive technology and the whole things is deprecated, anyway. You better learn to use Cineware, buy a 3D program like Pro Animator or Element 3D or learn a proper 3D program.
    Mylenium

  • Pre-comp 3D Ray-Traced text quality

    I've made some text in AE.  It looks smooth and great until I pre-comp.  Then it gets some aliasing around the edges and is nowhere near as smooth.
    Text looks aliased in the pre-comps.  If I click the 3D icon on my master comp, it becomes smooth in master comp.  Unfortunately, I can't leave 3D checked on because I want to apply effects to the 3D text - hence, the pre-comps.  Changing the ray-trace quality and anti-alias filter type does not appear to change anything for me.
    Any suggestions?
    AE CS6
    Win 7 64
    2GB GTX 560 Ti
    16GB RAM
    i7-2600k
    Thanks,
    JB

    I'm not exactly sure what your comp looks like but here are some guidelines. If you want to use Ray Traced rendering then you cannot apply certain effects, blend modes and other things to the 3D layer. If you pre-compose and collapse transformations you should be able to then apply effects to the pre-comp and still see the 3D and move around the object with the camera. If you turn on the 3D switch for the pre-comp the effects will then go away and the edges will show aliasing.
    The Collapse Transformations switch looks like a * and is just right of the shy icon.
    If that doesn't solve your problem then we need to see a screenshot and maybe a flow chart of your project.

  • Ray-tracing on GPU disabled on MacBook Pro with double graphic card

    Hi to all,
    i've just installed the demo version of after effects on my new macbook pro 15".
    It has these 2 graphic cards:
    Intel Iris Pro Graphics
    NVIDIA GeForce GT 750M
    2GB memory GDDR5
    But when i open After effects CC i get this error:
    Ray-tracing on GPU requires a dgraphic card NVIDIA approved and CUDA 5.0 or above. At the moment ray-tracing will use just the CPU.
    I've seen on NVIDIA that mine is a CUDA GPU: https://developer.nvidia.com/cuda-gpus.
    Why am i getting this error?
    Thanks

    > Maybe updating your graphics driver could help. Your current version is 310.xxx while the latest version is 331.xxx but if your card is not on adobe's supported list, i guess AE won't let you use it.
    No.
    This is not about the graphics driver. It is, as I said, about the CUDA driver.
    Also, you are incorrect about After Effects not letting you use a card that is not on our whitelist; that is why there is the option "Enable untested and unsupported GPU..." (which is "Abilita GPU nontestata e non supportata..." in the original poster's Italian version).
    Details:
    http://blogs.adobe.com/aftereffects/2013/09/gpu-changes-for-cuda-and-opengl-in-after-effec ts-cc-12-1.html

  • Is gonna work the new Intel Iris Graphics with After Effects in GPU mode (ray traced) in a future?

    I want to know if it will be posible... I don't want to think that lots of users (with intel iris MacBook's) are out of this option.

    No.
    The ray-traced 3D renderer is built on top of the Nvidia OptiX library, which requires CUDA.
    Details:
    http://blogs.adobe.com/aftereffects/2012/05/gpu-cuda-opengl-features-in-after-effects-cs6. html

  • 3D ray tracing and nvidia ge force gtx 860M

    Hi, I found these types of errors when I try to activate the 3D ray tracing for animations in AE CC 2014 trial:
    after effects error: ray-traced 3D: initial shader compile failed (5070 :: 12)
    after effects error: Ray-traced 3D: Can not create context for ray tracer (5070 :: 1)
    after effects error: Ray-traced 3D: Out of page mapped memory for ray tracer.
    Your proget may Exceed GPU limits. Try closing other applications.
    try updating the CUDA driver (5070 :: 2)
    I installed and updated drivers CUDA, I entered my video card in the list of compatible video cards, but I can not solve the problem.
    Does anyone know how I can fix this?
    Thanks in advance

    Unfortunately I just need that setting, as required by a professor for a university course, is part of the examination program, has made its own lesson using that tool for animation of lights and shadows on planes and texts in 3D

Maybe you are looking for

  • Set sign-in status toggles to disabled on its own?

    Hello! I have a user whos "Set sign-in status" in OWA keeps toggling to disabled on a daily basis. MS support says this is managed by the AD settings for the user. I've checked ever setting and compared them to users who are not experiencing the issu

  • Zero values in stacked column

    Hello all, I'm doing some reports in apex 4 and I'd like to hide the zero values. Could it be possible? I've read most of anychart doc and xml reference but I can't seem to find what I'm looking for. The data format section in anychart doc: http://ww

  • Iphone notes are not syncing with outlook 2010

    Hi, my iPhone 4 notes are not synchronize with outlook 2010 in both way. I uninstall my itunes and office and reinstall but still the problem remain. I also check itunes addin in outlook 2010 which is active.  I checked in itunes info tab all setting

  • My Photoshop 7 is not wroking right.

      Can someone help me please? When I move my images to the edit box I have a hour glass on all my photos. then when my photos go into the edit it doesn't always work. the screen says that there is an error, or not responding. Can someone show me wher

  • University Firewall and Video Chat

    Hello!!! I got my isight about a week ago and I haven't been able to use it for video chat yet. Every time that I try I get the (popular as I found out) message "Failed to start Video Chat because: (my name) did not respond". I tried everything that