Connecting zoom and object size ?
in
Programming Questions
•
1 year ago
Hey,
I got another question relating to the script I posted yesterday:
I have a map and I'm able to zoom in + out.
Now I have some popups you can push up when you click on diffrent places in the card.
The Problem:
When I'm zoomed in you can't see the popups anymore because they have a fixed size. Is there anyway I can scale it down/up when I'm zoomed ?
the zoom is generated here:
- void mouseWheel(int delta) {
- zoom = zoom+=delta;
the map is translated by:
- translate(0, 0, zoom);
zoom is 400 when you start the programm.
I think the problem is that the popup is a class… That's why the translate doesn't affect the popup ( the popup.generate code is mentioned in another class!)
perhaps anyone can help me out with that :) Would be pretty great :)
Thanks a lot
cheers
1