Sphere lighting problems

Hello, I am relatively new to Java3D and was unable to find an answer to my problem via a forum search, so I'll post it here:
I'm working on a program that is basically a Solor System simulator in which I have textured, spherical planets orbiting about a sun as well as rotating about their own axes. The scene is lit by a point source from the sun and a small amount of ambient light.
My problem is seen in the day/night breaks on the planets: they are very sharp, jagged and uneven, apparently just following the polygon edges, rather than being a nice, straight line. These breaks jump back and forth as the planets rotates and new polygons are lit, giving rise a a rather unrealistic sunrise.
Increasing the number of divisions in the sphere (I'm currently experimenting with 64 or 128) helps a bit, but it requires an unreasonably large number of divisions to get an acceptable appearance. Is there some way for me to fix this problem, perhaps there's a better method of generating normals of which I am not aware? Thank you very much.

Now with non-scrolling goodness, sorry :/
Howdy,
I'm working on a very similar-sounding program. One thing you may want to try is setting the "shininess"
of the material that you put on the spheres you use on your planets. Here's a great reference:
http://java.sun.com/developer/onlineTraining/java3d/j3d_tutorial_ch6.pdf
Check out the sample on the top of page 28. Also, am I the only one who thinks the term "shininess" is
funny? Shouldn't it be just "shine" or something?
I actually came to the forum looking for a solution for this solar system problem as well. In particular,
I created a point light at the center of a sphere (picturing it as a star or the sun). The light shines
on other spheres in the system, but doesn't shine on the surface of the sphere that encloses it. You get
something like a black hole that gives off light (there's no ambient lighting).
This behavior makes sense, but I can't think of a way to have that same light color shine as the surface
color of the (textured) sphere as well. Any suggestions?

Similar Messages

  • Macbook Pro 13" Mid 2009: back light problem

    Hey guys,
    I was hoping you could offer me some advice.
    My 13" Macbook Pro from mid 2009 has been having some backlight issues. Sometimes, after opening the screen, the backlight won't turn on. If I shine through the Apple logo on the back with a torch, you can see the log-in screen, so I'm pretty sure the problem lies with the back light.
    I have tried ressetting the SMC and PRAM, yet that hasn't helped. The only way to get the backlight to turn back on is to remove the cover, unplug the battery, hold the power button for 5 seconds, plug back in the battery, put the cover back, and then turn it on.
    So far I had to do this every 2 months or so, yet now the screen seems to die more and more often. As you can imagine, it's quite a pain having to go through this process over and over.
    Again, any advice to fix this issue would be fantastic.
    Thanks!

    I appreciate the response, but my issue does not appear in the linked article as a reason to reset the SMC. Resetting the SMC seems like something too radical to fix something that should "just work". My MBP generally takes too long to wake up or doesn't wake up at all. If it doesn't wake up, I hold the power button and restart. Very annoying, since my wife can resume work on her PC faster coming out of Windows 7 hibernation mode.
    Thanks, Apple!

  • Nokia 6300 light problem

    heyy i think i have a problem with my 6300, usually the light switches off when i dont press any buttons for a while but when i charge it the light stays on. Is this a manufacturing problem or is there a setting that i can change so that the light switches off when charging>???

    Hi if you go into -Menu - settings - Enhancements - Charger. You can change the setting to Automatic instead of on. That way it goes of after a few seconds.

  • WebLogic to Web Sphere Migration problem

    Hi,
    I have a problem on Migrating from Web Logic to Web Sphere in RSA for websphere 7.0 .
    On clicking prepare for deployment there displaying a pop up error "Deploy has encountered a problem". in details
    The error is:
    Deploying hqp-ejb
    Deployment from com.ibm.etools.ejbdeploy.EJBDeployer had errors:
    Error generating findTest(int) query for bean Foo(Abstract schema name=Foo). Error=query cannot be pushed down
    Query='SELECT Object (a) FROM Foo As a WHERE a.id = ?1 AND a.code = 'M''.
    This application is running fine in Web Logic.
    The queries are inside ejb-jar.xml.
    Please help to fix the problem.

    LiveCycle's install bits for WebSphere and WebLogic are different.  You simply shouldn't install the bits for WebLogic and then try deploying to WebSphere.

  • Red light problem

    I have a red light coming from my headphone jack. In the sound output, the only thing there shows optical digital output, though nothing is there. It started when I dropped the computer, and now the internal sound will not work. I tried to spin the toothpick around, and the red light would turn off for a few seconds, then it would flicker back on. This has happened about 5 or 6 times, so Im not sure if Im doing something wrong or if its a bigger problem.
    Thanks!

    Please make a Genius Appointment and take it in for service. The red light is related to the optical digital output.

  • 17" MacBookPro LCD light problem

    Hi, I hope somebody can help me with this...
    2 months ago (may 2011), I bought a MBP 17" 4GB RAM 1GB video, the thing is, I used it normally the last time (I don´t remember if that day installed a new firmware, but I believe I installed one few days before the problem) and i turned it off, when I tried to turn it on, I heard the sounds and a CD reading, but the LCD is just black, dead, like it is unplugged, I can adjust the volume and hear the sound of it, I can see the light of the keyboard, and then, if I use my MBP with a window behind of me, with the sunlight I can see the desktop and the menus and use them, that´s why I believe the LCD light is not working. As I said before, I just bought it 2 months ago in USA, but I took it out of the country for work and I can´t find the ticket!, does anybody know if the warranty applies in another country (Mexico)? as an additional data, my MBP haven´t suffered the minimum hit or fall, it has no scratches at all.
    Please somebody help me! =(

    I think your best bet would be to call Apple on the phone and explain your situation and see what they suggest:
    http://www.apple.com/contact/
    Down at the bottom there is a number listed for Mexico.
    You are clearly under warranty, and this does sound like a hardware problem of some sort that should be covered.
    Good luck!

  • Notification light problem on my Nokia 500

    (OS-Symbian Belle Refresh)
    Notification light on my device has stopped blinking when I receive a text message in fact not it blinks when I receive delivery reports
    all settigs are set perfectly
    I hv done hard reset
    took it to care centre n got it re-installed ....it worked okay for few days but  then the problem starts again
    i am literally sick of these people at care centre, for every problem their solution is to get the software re-installed....i hv done it four times n still no help......it takes hours to restore the phone......so if anyone has solution other than format the device would be helpful

    /discussions/board/message?board.id=topfaq&thread.id=128
    try this
    You know what I love about you the most, the fact that you are not me ! In love with technology and all that it can offer. Join me in discovery....

  • N85 video light problem?

    hi all yesterday i traded my se w902 for a n85 and im really happy i did now before i used the phone i reinstalled fw v 11 today i wanted to take a video in a room with video light on in the settings when i press record it only flashes for 1 sec and then the light goes off and video keeps recording this is strange what can i do about this other people have similar prob? help me thx
    Nokia Lumia 1020 + Sony Xperia Z1

    You could try to hard format the phone. Keep in mind this procedure will completely erase all your phone's contents (3rd party apps, settings, wifi access points, contacts, themes, web bookmarks, etc), so first you will need to backup the phone using Nokia PC Suite.
    Here's how to do it:
    Power off the handset, hold * 3 and the Green call button and switch on the phone. keep the keys held until the phone is fully powered up.
    It's a bit difficult, precisely because Nokia wants to avoid users accidentally formatting their phones.
    Once the phone has been formatted you will need to reinstall NGage (you can download it and install it directly from the phone browser), and possibly some other applications that came with your N85, so I recommend you to first make sure you can get the apps for reinstallation. 
    I don't know if this will solve the problem but other than the hassle of backing up the info and reinstalling the apps, it's worth a try in case you can not locate the offending 3rd party application.
    Good luck!

  • Whatsapp Notification light problem

    Hello! I have a problem with whatsapp,because at first receive msj..my notification light doesn't work...but when i receive 2rd msj..my notification light it's right
    Please help me with this problem..
    Thanks!!

    Have you checked whatsapp notification settings? do you have a third party notification app? do you have a taskiller or antivirus?
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • Nokia 6500slide Keypad light problem

    I am having a problem with my nokia 6500s, the keypad lights with the numbers on will not switch off unlike the buttons on the top((select etc))
    Can anyone give me any help??
    Would be really grateful.

    Hi
    I have the same phone...8 months old..actually it has been in for repairs 3 times..the new one they gave me to replace it is is for repairs as I type this.
    My keypad lights go off after a few hours...whatever buttons I press..the keypad lights will not come on.  Sometimes the delay is 3 or 4 days..but they eventually don't come on.  The only thing that resolves it for a few days/hours is to switch it off and on.
    I suggest you take it back to where you bought it.
    Hope it helps.

  • Qosmio F750 WEBCAM IR (infrared light) problem

    The colors gets wrong when I use the built in webcam on my Qosmio F750W10. Red gets pinkish and black tends to be violet/blue.
    Using a IR-CUT filter in front of the camera lens gives correct colors and using a IR-open (closes all visible light) The camera still sees all in black/white.
    My conclusion is that the camera has no or a non functioning IR filter.
    Is this an error with the built in webcam or did Toshiba use a cra**y cheap camera in this expensive computer?
    The problem is worse when I sit under a Halogen lamp, guess it radiates more IR-light.
    And yes, I have tried all available software adjustments! And yes I have reinstalled OS and drivers!
    Anyone else experienced this?
    Regards.

    Hi,
    I do not expect this built in webcam to have superiour quality (resolution is 1280x800 ) but I would like the colors recognition to be OK. All red, dark red and orange looks like a bleached Pink Panter. I have tested 4 other laptops (Acer,Asus, Toshiba Portege) none of them has any troble with colour recognition even if some is much cheaper and has lower resolution cameras.
    My Qosmio F750 is still under warranty but I have a problem making Toshiba Support understand that this is a problem.
    Should I not expect better quality? So I would like to *check out if any other owners of this Qosmio F750 has this color recognition problem* with the built in webcam.
    And as I said before I have found that the problem is that the camera has no IR-CUT filter. Is this camera designed with no IR protection, or is it a production error with my computer?

  • Having status light problems.

    I plug my iPod into a USB port and everything works great, except the light keeps blinking orange. When I start up iTunes it stops blinking and goes to solid orange, but never goes to solid green. Yesterday, I had only used it for about 10 muinites so plugged it in just so it would be fully charged next time I used it, but after about an hour, it never stopped blinking orange. Am I just not waiting long enough or something?

    Where is "enable disk use" in settings? I see a
    few
    options, but "enable disk use" isn't one of
    them.
    Scroll down OR make window bigger...
    Oh duh... Well I did that and the light is still
    solid orange (it went to solid orange when I started
    iTunes. But now I seem to have another problem. I
    plugged to USB dock into to back of my computer
    instead of the front, but when I go to My Computer,
    it comes up for about 5 or so seconds and then turns
    into removable disk and then just disappears. It
    still shows up on iTunes but not My Computer. I've
    never had that happen before...
    Windows XP
    Ok I actually fixed that last problem, but I took it off the dock and back on it and now it's still just blinking orange.

  • Status light problem

    I'm not sure if anyone else has had this problem, or if there is even a fix for it but here goes. On my 8330 I have this strange problem with the blinking status light. Whenever I turn my phone off (at night, or to recharge), then turn it back on the status light will work for a while and then stop. I have to go into options/screen (or whatever it's called) and change the status light option to "off", then save my change (which by the way makes the status light start blinking again), then change it back to "on" then save the change and all worked fine until I power it off (at which point I have to go though the whole convoluted process again). This is not that big of a deal (just kind of a pain in the butt to have to do all the time). Any help would be appreciated.
    John K Waggener

    Hi and welcome to the forums!
    On the status light what color are you referring to?
    Green is the coverage indicator
    Blue is Bluetooth
    Red is the message indicator
    Amber is the low battery/charge indicator.
    Thanks,
    Bifocals
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • WRTU54G-TM try this to fix blue light problems, dropping service and disconnects

    I spent a ton of time on the phone with T-Mobile, Linksys and the internet company to solve the problem of the router kicking off frequently.
     The last suggestions, which has worked so far is to log into your router.  Change the MTU from automatic to manual and then type in 1450.  Save and it will reboot.  Wait until your back online and you should have NO problems.  Linksys says this is the workaround until tmobile releases the ok on new firmware.
    if its blinking blue either call tmobile and have them deactivate the voicemail on that line or you need to set it up.
    Good luck.

    Hi,
    I just started the t-Mobile @ Home service with the WRTU54G-TM router this weekend and had all sorts of issues with the router rebooting and dropping the blue-light.
    I have AT&T DSL with a 5100 Speedstream modem.  Before getting the Linksys router, I had a 5 year old Netgear wireless router that had a rock solid internet connection - only dropped it 3 times over a 5 year period.
    After having a full day off issues with the t-Mobile Linksys router, I decided to try reconfiguring my network so I had the Netgear router in between the Linksys and the modem.
    I downloaded the latest set-up wizard from Linksys and ran it (and followed the instructions to the "t"), and chose the option to keep my existing network (with the netgear router) and add the t-Mobile Linksys router to the existing network.  Since the Linksys has better wireless and security features than the old Netgear router, I still have all my wireless traffic going through the Linksys (I turned off the wireless features of the Netgear router).  All the Netgear router is doing is keeping the internet connection alive.
    So far (it's only been one day), I've seen a dramatic improvement - haven't lost the blue light once and everything seems to be running fine.  If you had an existing router that worked will prior to adding the T-mobile one, I would encourage you to try this set-up, since it has worked very well for me.

  • A strange flashing red light problem on the 8100.

    Blackberry Pearl 8100
    Problem: Usually after using it for the first time after several hours of non-use it will shut off unexpectedly, flash me the red light twice, and then allow me to turn it back on to a long load up. Battery power is fine. No data loss. No unexpected behavior beyond that. 
    Should I wipe it?
    Any help is appreciated. 
    Thanks.

    I have never seen or heard of a 2008 shipping with, or supporting, 512MB DIMMs, I guess you may try, but then those would be the slower 667MHz FBDIMMs probably, and not 800MHz.
    It would have shipped with 2 x 1GB with one on each Riser, but then to install a full set, move one, and install pairs on a Riser.
    People have had bad memory show with half its correct amount.

Maybe you are looking for