[VB.NET] [RESOLVED] About Sky rendering-VBForums
Results 1 to 14 of 14

Thread: [RESOLVED] About Sky rendering

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2012
    Location
    việt nam (vietnam)
    Posts
    37

    Resolved [RESOLVED] About Sky rendering

    I've already have a sky, a dodger blue sky (nice day huh? )
    I generated this by device.clear (not a good solution, i think)
    So if I want to make a sky, i'll create a mesh, move it upwards my head with some cloud texture, or just clear the device and place on some clouds?
    More: If there's a "Sky" mesh, so i must do it like a roof, doesn't it?

  2. #2
    The DirectXpert Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,074

    Re: About Sky rendering

    Im at work right now but gimme some time when i get home and ill whip you up a skybox with lens flares. I think youll like it.

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 2012
    Location
    việt nam (vietnam)
    Posts
    37

    Re: About Sky rendering

    Your work time is limited to my life time

  4. #4
    The DirectXpert Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,074

    Re: About Sky rendering

    Here ya go. I did my best porting it to vb.net 2010 version from vb6, but it works. A skybox with lensflares. Unfortunately Im gonna have to upload the graphics separately. Its gonna be a couple posts worth.
    Attached Images Attached Images     
    Attached Files Attached Files

  5. #5
    The DirectXpert Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,074

    Re: About Sky rendering

    More graphics youll need:
    Attached Images Attached Images      

  6. #6
    The DirectXpert Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,074

    Re: About Sky rendering

    And last bit here. Put the graphics in your projects bin\Debug folder where your exe is and itll work. Be sure its the 6 skybox and 4 lens flare images. Enjoy

    The blasted vbforums 500k upload sucks. Tried zipping it but no use.

    But heres somewhat a screenshot of it. The actual program looks even more marvelous
    Attached Images Attached Images   

  7. #7
    The DirectXpert Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,074

    Re: About Sky rendering

    I don't wanna really reupload it to fix something minor but add another Still_Camera_Control just before the Create_Lens_Flare_Polygon so it doesnt move when you move:

    vb.net Code:
    1. Private Sub Render()
    2.         Device.Clear(ClearFlags.Target Or ClearFlags.ZBuffer, Color.FromArgb(0, 0, 0), 1, 0)
    3.         Device.BeginScene()
    4.         Still_Camera_Control()
    5.         Create_View_Frustum()
    6.         Create_Skybox()
    7.         Draw_Skybox()
    8.         Camera_Control()
    9.         Reset_World_Matrix()
    10.         Create_Platform()
    11.         Draw_Polygon()
    12.         Create_Polygon()
    13.         Draw_Polygon()
    14.         Still_Camera_Control() '<----- ADD ME
    15.         Create_Lens_Flare_Polygon()
    16.         Create_Lens_Flare()
    17.         Draw_Lens_Flare()
    18.         Device.EndScene()
    19.         Device.Present()
    20.     End Sub

  8. #8

    Thread Starter
    Member
    Join Date
    Dec 2012
    Location
    việt nam (vietnam)
    Posts
    37

    Re: About Sky rendering

    OMG i gonna faint now.
    P/s: It's ok and I have to port it to vs 2005 format (I still have vs 2010 but it's only a ram drinker) I'm fun now and i'll make a copy of "Lens Flare 4.png"
    PSS: that's toooooo amazing.
    Last edited by PAPYRON; Apr 10th, 2013 at 06:13 AM.

  9. #9
    The DirectXpert Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,074

    Re: About Sky rendering

    Its actually 4 images of Lens Flare. The Lens Flare 4 should be above the screenshot over in post 6, as well as Lens Flare 1 2 and 3 over in post 5. And youre welcome

  10. #10

    Thread Starter
    Member
    Join Date
    Dec 2012
    Location
    việt nam (vietnam)
    Posts
    37

    Re: About Sky rendering

    It's a pitty i don't have enough rep to rate you on.
    now this looks like a 3d tut from a to z

  11. #11
    The DirectXpert Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,074

    Re: About Sky rendering

    Thats cause you have to rate others. The purpose of this forum is for everyone to help everyone.

  12. #12

    Thread Starter
    Member
    Join Date
    Dec 2012
    Location
    việt nam (vietnam)
    Posts
    37

    Re: About Sky rendering

    I don't have enough level to help anyone in this forum :P yet as i'm just 14 years-old kid.
    You know, i have another in caulacbovb (http://caulacbovb.com/forum/memberli...rofile&u=24450) and i helped lot ones who asked in .net

  13. #13

    Thread Starter
    Member
    Join Date
    Dec 2012
    Location
    việt nam (vietnam)
    Posts
    37

    Re: About Sky rendering

    I don't have enough level to help anyone in this forum :P (international average experience is higher than vietnam) yet as i'm just 14 years-old kid and i begin learning vb.net 4 years ago.
    You know, i have another in caulacbovb (http://caulacbovb.com/forum/memberli...rofile&u=24450) and i helped lot ones who asked in .net

  14. #14

    Thread Starter
    Member
    Join Date
    Dec 2012
    Location
    việt nam (vietnam)
    Posts
    37

    Re: About Sky rendering

    i think there's no more question in this section so i'll mark as solved and straight ahead to another problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.