Author Topic: Animated Backgrounds?  (Read 55152 times)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Animated Backgrounds?
« Reply #105 on: December 15, 2019, 09:10:31 pm »
Oh Patrice,

This IS really cool!  :o 8)

Quote
... specific .fs texture ...
You mean, specific .fs shader?

This .mp3 audio is very hissy, especially in the left channel... Any other, preferably lossless, format available? (I have an E-MU 24-bit 192KHz audio card attached to an 80W Sharp hi-fi stereo setup with 9-band equalization)
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Animated Backgrounds?
« Reply #106 on: December 15, 2019, 09:35:54 pm »
Patrice,

In this Sanctuary.fs, line 32, make the following change:

    float floorr = p.y + 0.25;

This will lift the camera a bit so that the statue's feet at its default size will always fit in the well it's flying over. :)
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Animated Backgrounds?
« Reply #107 on: December 15, 2019, 09:44:24 pm »
Very good, thank you!
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Animated Backgrounds?
« Reply #108 on: December 15, 2019, 09:47:42 pm »
I'm glad to help! :D

No, Uncertain-Future is much better than Titan-Powerplant (there's a typo in the name). It's a pity there's so much hiss in the recording... :-[
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Animated Backgrounds?
« Reply #109 on: December 15, 2019, 09:58:22 pm »
Try also with that one
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Animated Backgrounds?
« Reply #110 on: December 15, 2019, 10:02:03 pm »
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Animated Backgrounds?
« Reply #111 on: December 15, 2019, 10:14:57 pm »
Then try that one, from the song of the distant earth...
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Animated Backgrounds?
« Reply #112 on: December 15, 2019, 11:16:51 pm »
This one is nice but associates with something more material. ;)

Volga Boatmen


and their song: (pulling the ropes to haul a barge)
https://www.youtube.com/watch?v=RiSpp6ml5xY

;D
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Animated Backgrounds?
« Reply #113 on: December 16, 2019, 01:20:01 pm »
My friend

Here is a link to free audio resources
https://soundimage.org/sci-fi-2/

and i have attached a sound track to use with Tokyo.fs


BTW we need a new global meta to adjust the zoom at startup.
#zoom xx
« Last Edit: December 16, 2019, 04:01:19 pm by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Animated Backgrounds?
« Reply #114 on: December 16, 2019, 04:46:04 pm »
About #Zoom
do you think we could use something like this when loading a new model
        CAMERA_FOVY = 20.0f * 0.8f; // Zoom 20% bigger
        CAMERA_OFFZ = 3.05f * 0.8f; // Zoom 20% bigger
        glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
        gl_AdjustNearPlane(); gl_Resize(); // recalc gP.glZNEAR and apply it
        zeroCamera();
        gP.bRedraw = TRUE; gl_DrawScene(); // redraw immediately


Translation could be usefull as well ;)

these are meant to be used with shader animation
« Last Edit: December 16, 2019, 05:01:40 pm by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Animated Backgrounds?
« Reply #115 on: December 16, 2019, 05:15:25 pm »
0. Thank you very much for the link! Audio pieces are very good. So, the hiss in Uncertain-Future.mp3 is intentional; it's some sort of hi-freq noise but I still don't like it. Below is another piece that I think could fit Planar best of all.

1. No, we should save both camera positional data for the camera and target and rotational data for the model because they are all interrelated; 9 floating values all in all. They will satisfy both our Animate reset and gl_DrawScene procedures. I will think of, and experiment on, how to implement it through a menu element similar to our Save lighting to mtl file.
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Animated Backgrounds?
« Reply #116 on: December 16, 2019, 06:23:11 pm »
Abyss

Using a reworked version of the galaxy_trip.fs...


Quote
I will think of, and experiment on, how to implement it through a menu element similar to our Save lighting to mtl file.
That would be nice, thank you!
« Last Edit: December 24, 2019, 02:25:25 pm by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Animated Backgrounds?
« Reply #117 on: December 16, 2019, 07:49:40 pm »
Cool! :)
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Animated Backgrounds?
« Reply #118 on: December 17, 2019, 05:11:06 pm »
I would like to setup the location at startup, like on the attached screen shot.

See also the attached Tokyo project for test purpose.
« Last Edit: December 17, 2019, 05:18:45 pm by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Animated Backgrounds?
« Reply #119 on: December 17, 2019, 06:40:59 pm »
To me, this HUD gives no idea of rotation even if it isn't a billboard. I think it will be better to position/rotate the real model directly.

I'm working on adding this feature now in response to a Save pose to mtl file click, specifically on ways to add a new meta #pose to a .MAT file that doesn't have it yet. The problem is that in a general case, the automatic positions of new global #metas in the file aren't defined or accessed clearly and easily, especially if they are to be in between the lights and newmtl's...
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)