Previous topicNext topic

How to create a tunnel?

Questions, comments, feedback, etc.
Post Reply
stevie777
Posts: 39
Joined: Mon Aug 25, 2014 8:44 pm

How to create a tunnel?

Post by stevie777 »

There are so much clips where you seem to fly through a tunnel. How does it work in magic?
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: How to create...

Post by Magic »

Hmm, are you referring to some of the shaders in the GLSLShader module?

You can't really "create" those unless you know how to write GLSL programs. But, you can always look for more at http://glslsandbox.com or http://shadertoy.com. For example, try this one: http://glslsandbox.com/e#19798.4

Does that help?

Eric
blackdot
Posts: 528
Joined: Sun Jul 06, 2014 10:18 pm

Re: How to create...

Post by blackdot »

hey, a while ago i did some tests with alpha channel and such. i created two short looping clips, one with red and one with blue cubes and put them over each other in magic. adding a kaleidoscope quickly makes a tunnel. i created those in blender. With the ability to export videos with an alpha channel from blender, you can easily put them ontop each other (and the reds are seen, although the background of the blues is completely black). See this thread for more info on alpha channels, blender and magic if interested: http://magicmusicvisuals.com/forums/vie ... p?f=2&t=88 . What I'm saying is: Using external software to preproduce short clips or content, you can do make a tunnel, in this case a tunnel out of cubes :).

sorry, the audio is blocked on youtube (legitimately), therefore MEGA (37mb).


Also I think when the current starfield becomes a proper Particle Emitter with many features, it could be used to emit particles in a "tunnelly" fashion (toward the camera "building" a corridor of some way, depending on what the particles are. For example could my vid above be done in magic then (in blender i actually used two emitters per clip, that each output a cube after another). Let's see what magic holds for us in the future :).
stevie777
Posts: 39
Joined: Mon Aug 25, 2014 8:44 pm

Re: How to create...

Post by stevie777 »

Thank you! Both answers really helped. Yesterday I played a little bit with the shaders, but it's not that easy for me to change colours for example. But it's the question, if that really matters.

Also the way with the little blender loop is something I'll figure out.
blackdot
Posts: 528
Joined: Sun Jul 06, 2014 10:18 pm

Re: How to create...

Post by blackdot »

unfortunately if you havent got any prior knowledge of 3d software like blender, it takes some time to get into it.
stevie777
Posts: 39
Joined: Mon Aug 25, 2014 8:44 pm

Re: How to create...

Post by stevie777 »

blackdot wrote:unfortunately if you havent got any prior knowledge of 3d software like blender, it takes some time to get into it.
I know. But I think it should be possible to create a simple loop with it.
stevie777
Posts: 39
Joined: Mon Aug 25, 2014 8:44 pm

Re: How to create...

Post by stevie777 »

Eric wrote:For example, try this one: http://glslsandbox.com/e#19798.4

Does that help?

Eric
Hm, it 's great, but it does'nt work with just copying and pasting it in a new textfile....
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: How to create...

Post by Magic »

You're right, sorry. That one is a bit more complicated and I didn't actually test it.

Try this:
Tube.txt
(5.69 KiB) Downloaded 415 times
stevie777
Posts: 39
Joined: Mon Aug 25, 2014 8:44 pm

Re: How to create...

Post by stevie777 »

Eric wrote:You're right, sorry. That one is a bit more complicated and I didn't actually test it.

Try this:
Tube.txt
Great work! Thanks a lot. I compared the files with WinMerge and tried to understand the difference. Is it possible to explain for somebody who just worked with html and css?

Can you help me with this http://glslsandbox.com/e#20329.0, too?
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: How to create...

Post by Magic »

Can you help me with this http://glslsandbox.com/e#20329.0, too?
That one seems to work for me just with copying and pasting. Is it not working for you?
stevie777
Posts: 39
Joined: Mon Aug 25, 2014 8:44 pm

Re: How to create...

Post by stevie777 »

Eric wrote: That one seems to work for me just with copying and pasting. Is it not working for you?
Ahm, really not. Tried it 10 times or more ...
Can you send me your text-file to compare it? What editor do you use? Maybe this makes the difference....
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: How to create...

Post by Magic »

Let me know if this works:
Tube2.txt
(3.94 KiB) Downloaded 488 times
stevie777
Posts: 39
Joined: Mon Aug 25, 2014 8:44 pm

Re: How to create...

Post by stevie777 »

Eric wrote:Let me know if this works:
Tube2.txt
perfect! great! thanks!
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: How to create a tunnel?

Post by Magic »

What editor do you use? Maybe this makes the difference....
I've just been using Notepad on Windows. Maybe it has to do with the line endings (CR/LF)?
stevie777
Posts: 39
Joined: Mon Aug 25, 2014 8:44 pm

Re: How to create a tunnel?

Post by stevie777 »

Eric wrote: Maybe it has to do with the line endings (CR/LF)?
This might be a reason....
By the way: what's about copyrights? I found nothing about it on glslsandbox.com. Are the files open source?
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: How to create a tunnel?

Post by Magic »

All the content on GLSLSandbox is open source -- otherwise you wouldn't be able to copy it :). But open source doesn't necessarily mean it can be used commercially.

See this topic for a bit of information about licensing:
http://magicmusicvisuals.com/forums/vie ... t=128#p339

Most of the shaders on GLSLSandbox are probably ok to use commercially, but if there is an author's statement at the top of the code, be sure to read it and to follow any guidelines.

Eric
stevie777
Posts: 39
Joined: Mon Aug 25, 2014 8:44 pm

Re: How to create a tunnel?

Post by stevie777 »

Well, if there will happen nothing like a really crazy wonder it will be just uncommercial use for the next 10.000 years or more.
blackdot
Posts: 528
Joined: Sun Jul 06, 2014 10:18 pm

Re: How to create a tunnel?

Post by blackdot »

stevie777 wrote:Well, if there will happen nothing like a really crazy wonder it will be just uncommercial use for the next 10.000 years or more.
You can alwasy just ask the author if you can use it commercially. I think many small astists wouldnt mind (if asked) and may even be greatful for the advertizing. Worst case you'd have to buy it or share your revenue :).
Post Reply