Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - lucastar

Pages: [1] 2 3
1
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: June 01, 2013 »
That was the effect i wanted, so now I'm trying to make a color gradient to put to the letters.

2
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 22, 2013 »
good work!

if you remove the contents of framework64k\bin\v8\x86\Debug your uploaded .zip file will be a LOT smaller :)   (mainly the pdb/obj/idb/bsc taking up space)

Ok thanks for the advice!

3
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 22, 2013 »
Great stuff lucastar \o/

Looking forward to see how you did it :)
Thanks!!

OK, in the source is the Test() method in bmpFont.cpp class.

I will try to explain myself well (please see the attached image):

We draw the first quad, and the next one must have:
the left-top point = right-top point from the previous quad;
the left-bottom point = right bottom point from the previous quad;

then the right points = right points from the previous adding:
to the x coordinate, the size of the quad
to the y coordinate the yOffset.

The yOffset is calculated this way:
float yOffset = sin(time - x/*one of the two x point values*/ * n1 ))*n2;
n1 and n2 are float values.

Sorry for my terrible English, and if you have any questions please ask!

4
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 22, 2013 »
wow!!  :clap: excellent work mate! K++

thanks ninogenio!!

5
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 22, 2013 »
 :updance:

I did it!!!
The method is very simple, here is the example, and later i will upload the code and an explanation.

I am very happy because in the end i did it in a home-made way.

6
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 21, 2013 »
Thanks ninogenio! Now i'm trying to do the char stuff...
If I make it, i will upload results + code.

7
General chat / Re: Fun with l.e.d.s
« on: May 20, 2013 »
Very nice, that is low-level programming!

8
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 20, 2013 »
I think I've got it   :D
Not very nice, but i think this is the correct way.

Modify: of course nothing of changing char shape...

9
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 19, 2013 »
Yes, that is what I'm trying to do right now.  ;)

Quote
I wouldn't worry too much about changing the character shape yet. Sure, you can do some really cool stuff like make it warp in the Z plane, so that it bulges towards and away from you, but leave that until later.

So... it must be very difficult am+ i right? ;D

10
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 19, 2013 »
I can't do better than this. No idea about how to change the character shape, only how to make a wave...
I have tried to do it with vertex shaders too, following the tutorial, but it only worked when drawing 3d objects.

11
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 15, 2013 »
Thanks Raizor! this is very helpful!!
As soon as i get the results i want i will upload the code.

Thanks again!!!

12
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 14, 2013 »
I thought the vertex shader was the one to use for vertex transformations, and to do the wave effect. Fragment shader is not more about color and texture stuff?

13
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 14, 2013 »
I should probably also ask, what are you expecting to see on screen?

In first place i tried http://zach.in.tu-clausthal.de/teaching/cg_literatur/glsl_tutorial/#flatten, but it didn't work.
Then i tried to create a shader that did nothing(I think):
Code: [Select]
void main()
{

gl_Position = ftransform();
}
It doesn't work either. When i say that don't work, i mean they are loaded and compiled correctly, but then nothing shows up.

14
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 14, 2013 »
I'll have a look in a min lucastar. I stupidly uninstalled all versions of visual studio other than 2012 the other day, so you probably won't be able to open the project once I edit it (unless you have vs 2012?). I should be able to at least find the issue and point it out though. Fingers crossed :)

No, i don't have it, but i can get it on Thursday. If it is easier to you tell me.
Thanks!

15
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 14, 2013 »
I think there's no problem with that... but i didn't code the shader loader (i think Raizor is the author), so i'm not sure.

16
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 14, 2013 »
I've been trying all day to use GLSL... i create a shader, i compile it, but i can't get anything showing on the screen.
I upload the code so if anyone has time to take a look and help me, i will be very grateful because i don't know what is wrong.
Thanks!

17
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 14, 2013 »
Ok, i got a cute wave effect, but i can't get the character distorsion right.
Here is the example, for anyone who wants to try.
The method is _DrawChar on bmpFont.cpp class, and the z rotation seems to be working ok.
Sorry about the huge .rar size...

18
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 13, 2013 »
Thanks to all, I'm trying to emulate that movement... it's difficult, I'm thinking about using GLSL xD.
As soon as i get close, I'll upload the SC.

19
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 13, 2013 »
Works fine here lucastar, on Win7 x64 with a GTX 580 card.

Curious to see how it looks when scrolling across the screen  :)

thanks Raizor, i used your font classes to load the image and bind the texture correctly  ;).

20
C / C++ /C# / Re: [C++][OpenGL] Sine Scroller
« on: May 13, 2013 »
Ok, i did it canopy's way. The effect on the demo is good, but not exactly which i wanted. The position and z orientation change, but shape doesn't.
I will try to add the FBO stuff, and if it does not work, try the GLSL way.
Uploaded the executable file, i don't know if it works on another PC, please try  ;)

Pages: [1] 2 3