Results 1 to 3 of 3

Thread: Thunder effect How to begin ??

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2009
    Posts
    6

    Thunder effect How to begin ??

    I'm learning OpenGL programming with C/C++.

    I want to create a 2D Thunder effect but i don't know how to start or a sample code that teach me how to modify it and customize it.

    Thanks in advance.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Mar 2012
    Posts
    129
    Here is how I would do it: Take a starting point, and then randomly branch out from there to some random number of branches or distance, drawing lines (made out of quads) as you go. You can bias the expansion towards a point. To do this, create a 2D vector with random x and y coordinates, normalize it, and add the bias vector. If you render it to a FBO, you can also blur it to make it look brighter (bloom): http://www.gamerendering.com/2008/10...filter-shader/.

  3. #3
    Junior Member Newbie
    Join Date
    Sep 2009
    Posts
    6
    I will try your ideas and the concepts i see in the link.

Similar Threads

  1. Where do i begin
    By pauloeduardo2 in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 09-28-2014, 07:01 AM
  2. Begin
    By Kuba in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 03-14-2003, 10:29 AM
  3. how to begin ?
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-08-2002, 08:50 AM
  4. Where to begin?
    By ryborg in forum OpenGL: Linux
    Replies: 5
    Last Post: 05-28-2002, 03:40 AM
  5. Help me to begin!!
    By reivat in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 10-31-2001, 08:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean