Noob needs help (diff editor vs visualizer) ...

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
AndersO
Posts: 4
Joined: Mon Feb 27, 2017 7:47 pm

Noob needs help (diff editor vs visualizer) ...

Post by AndersO »

Hello, new guy here ...

I'm dipping my toes in the water and it's a bit cold (there's a learning curve). :)

I'm trying to create a circle of cubes and have run into a mystery; the model looks fine in the editor but when I use it in the Visualizer I get another behavior. Are there some differences in terms of coordinates or trigonometry I need to know about?

Any pointers are welcome!

Model in the editor:
visualizer.jpg
visualizer.jpg (5.27 KiB) Viewed 7121 times
Model in the Visualizer:
editor.jpg
editor.jpg (6.71 KiB) Viewed 7121 times
Last edited by AndersO on Tue Feb 28, 2017 7:36 pm, edited 1 time in total.
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Noob needs help (diff editor vs visualizer) ...

Post by VilleK »

Hi and welcome Anders (Swede?),

I can see no reason to why this would happen so it could be a bug that needs fixing. What components/script do you use to create the circle? You could upload your project here if you want.

Regards,

Ville
AndersO
Posts: 4
Joined: Mon Feb 27, 2017 7:47 pm

Re: Noob needs help (diff editor vs visualizer) ...

Post by AndersO »

Hej Ville! (Yes, I'm Swedish)

Here is my project, with logging using trace().

When I run it in the editor the coordinates are correct, in the visualizer the debug log shows something else.

Thanks for helping,
Anders
Attachments
Polar3D.zgeproj
(10.47 KiB) Downloaded 544 times
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Noob needs help (diff editor vs visualizer) ...

Post by VilleK »

The problem is that SpecBandArray is 32 in the designer but the default size in the Visualizer is 256 (settings - spectrogram band count). So your script only paints the first part of the circle when run in the visualizer. You should prepare your script to be able to work with a SpecBandArray of 256 (the size of that array is set by the visualizer when the effect is loaded). Let us know if you need more help!
AndersO
Posts: 4
Joined: Mon Feb 27, 2017 7:47 pm

Re: Noob needs help (diff editor vs visualizer) ...

Post by AndersO »

Thank you! :D
Post Reply