Author Topic: Special sinusscrolling effect and I just don't get it  (Read 14655 times)

0 Members and 1 Guest are viewing this topic.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Special sinusscrolling effect and I just don't get it
« Reply #20 on: August 05, 2007 »
A vertex just means a point, verticies is the plural term for vertex.

In a triangle there are three verticies, each vertex typically has it's X,Y and Z co-ordinates.
X+Y being horizontal and vertical, Z being depth.

In your case they will also have UV co-ordinates.

U and V refer to horizontal and vertical positions in a texture map (your scroll text) and by splitting up the 2D image of your text into those little triangles you will be able to have a scroller that can sine in and out of the screen as well as up and down :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline va!n

  • Pentium
  • *****
  • Posts: 1432
  • Karma: 109
    • View Profile
    • http://www.secretly.de
Re: Special sinusscrolling effect and I just don't get it
« Reply #21 on: August 05, 2007 »
@Dextro:
I have created you a small image that should explain what i mean with the transformation and how it may/could work. Hope the image is good enough to understand...  first you see just your texture where you can draw your scroller on... next you will the texture and its vertices... at least you will see, how it could look like when transforming (moving) the vertices (points).

- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

Offline DeXtr0

  • C= 64
  • **
  • Posts: 79
  • Karma: 4
  • Proud member of dAWN
    • View Profile
    • dAWN Creations
Re: Special sinusscrolling effect and I just don't get it
« Reply #22 on: August 05, 2007 »
Hey Va!n, Shockwave

It's getting much clearer now, thanks to the example.
Just a (stupid) question:

How can I convert the sprite with the scroller on, to vertices ?
Is there a way to "cut out/Splitting" vertices of a sprite ?

This is something really new to me..
ClipSprite, which we use now can only cut rectangular things like a box..

Splitting up in triangles looks really cool but how  ???
A tip would be handy since I never did that ?

Regards,
DeXtr0

Offline va!n

  • Pentium
  • *****
  • Posts: 1432
  • Karma: 109
    • View Profile
    • http://www.secretly.de
Re: Special sinusscrolling effect and I just don't get it
« Reply #23 on: August 05, 2007 »
@DeXtr0:
I haver never really used the PB Sprite3D stuff as i don't really like the commands (also things that you can do with in PB)... Atm i am not sure how to change the number of vertices... i think it could be possible by knowing and changing the internal PB sprite3D structure... i will think about it.. (btw, cutting the original texture to a lot small would not be my cup up tea... there must be another way for a smooth solution)
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

Offline DeXtr0

  • C= 64
  • **
  • Posts: 79
  • Karma: 4
  • Proud member of dAWN
    • View Profile
    • dAWN Creations
Re: Special sinusscrolling effect and I just don't get it
« Reply #24 on: August 05, 2007 »
I hope there is VA!n  :)

I just found this on the PB forum:

Structure PB_Sprite3D
Texture.l
Vertice.D3DTLVERTEX[4]
Width.w
Height.w
EndStructure


Now I need to hurt my brains to see how I can change this "internal structure"

Cheers,
DeXtr0

P.S. Nevertheless if you find something let me know
« Last Edit: August 05, 2007 by DeXtr0 »

Offline WidowMaker [retired]

  • %010101
  • Atari ST
  • ***
  • Posts: 134
  • Karma: 21
  • %010101
    • View Profile
Re: Special sinusscrolling effect and I just don't get it
« Reply #25 on: August 05, 2007 »
I suppose that you could split it up into squares too if it came to that. There wouldn't make much difference.
You can deform all vertices independantly after you grab the sprite anyway I am guessing?


Offline DeXtr0

  • C= 64
  • **
  • Posts: 79
  • Karma: 4
  • Proud member of dAWN
    • View Profile
    • dAWN Creations
Re: Special sinusscrolling effect and I just don't get it
« Reply #26 on: August 06, 2007 »
Hey Widowmaker,

I suppose you are right.
I think I can transform the squares too (with transform3D) to get maybe the same result.

I have to try that as soon as my real life work is less stressy.

Anyway, it's a good idea too  ;D

I'll try it soon,
DeXtr0

Offline madsravn

  • ZX 81
  • *
  • Posts: 13
  • Karma: 0
    • View Profile
Re: Special sinusscrolling effect and I just don't get it
« Reply #27 on: August 10, 2007 »
@Dextro:
I have created you a small image that should explain what i mean with the transformation and how it may/could work. Hope the image is good enough to understand...  first you see just your texture where you can draw your scroller on... next you will the texture and its vertices... at least you will see, how it could look like when transforming (moving) the vertices (points).



Thanks dude.. I'm just stealing that idea, if that is ok with you ;)

Offline DeXtr0

  • C= 64
  • **
  • Posts: 79
  • Karma: 4
  • Proud member of dAWN
    • View Profile
    • dAWN Creations
Re: Special sinusscrolling effect and I just don't get it
« Reply #28 on: August 10, 2007 »
Sure if you send me the code :)

I just release a demo on our own website which has partly this code (not the transform stuff but a bit of zooming)
If you wanna see feel free and drop me some feedback..

Cheers,
DeXtr0

Offline madsravn

  • ZX 81
  • *
  • Posts: 13
  • Karma: 0
    • View Profile
Re: Special sinusscrolling effect and I just don't get it
« Reply #29 on: August 11, 2007 »
Sure if you send me the code :)

I just release a demo on our own website which has partly this code (not the transform stuff but a bit of zooming)
If you wanna see feel free and drop me some feedback..

Cheers,
DeXtr0

hehe :) I can post the code, if you promise not to laugh :) I write really shitty code... But do you have link for your demo? I'd like to see it, if I may do so :)

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Special sinusscrolling effect and I just don't get it
« Reply #30 on: August 11, 2007 »
Sure if you send me the code :)

I'd say that no effect is the copyright of an author and seeing as the effect is based on a Class demo that nobody has to send you the code if they don't want to.

I just release a demo on our own website which has partly this code (not the transform stuff but a bit of zooming)
If you wanna see feel free and drop me some feedback..

As per the rules of this forum a link to your website is permitted in your sig as long as it's small. Also you may post one topic in the links forum to promote your site because it is programming related.

That much you can do, if you want feedback on your intro / demo, post it here please.
Especially as you have used this community to help you develop it.

If you have not read the forum rules, please do so because the use of this community is a privilage, not a right and you must follow the guidelines if you want to use this place in the future. Thank you.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline DeXtr0

  • C= 64
  • **
  • Posts: 79
  • Karma: 4
  • Proud member of dAWN
    • View Profile
    • dAWN Creations
Re: Special sinusscrolling effect and I just don't get it
« Reply #31 on: August 11, 2007 »
Sure you get the link.
I will make a seperate topic in the right section

PS. Do not laugh I'm still learning too...

@Shockwave, sorry I'll read the rules again and I'll post the intro in showcase section since it's a finished one. You are completely right.
« Last Edit: August 11, 2007 by DeXtr0 »

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Special sinusscrolling effect and I just don't get it
« Reply #32 on: August 11, 2007 »
Thanks for your understanding on this :) I am looking forward to seeing how the intro turned out so please do post soon!
Shockwave ^ Codigos
Challenge Trophies Won: