Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (799)
Games in Android Showcase (236)
games submitted by our members
Games in WIP (865)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  SVG rendering; Ballistic path calculation  (Read 391 times)
0 Members and 1 Guest are viewing this topic.
Offline mudlee
« Posted 2019-11-26 08:10:16 »

Hey Everyone.

I managed to write a game design doc (https://docs.google.com/document/d/1JD18vqHkI5isv6qT_-IGet28PLvS31bgRwZCPWe38ck/edit?usp=sharing) with exact milestone plans hoping it will finally help me develop my game rather than just gamejamming and prototyping. I went through all of the problems I might have to implement and I see two area where I need little help.

- UPDATE: Finally I found I can use nanovg. Zoomable SVG rendering. I'd like to import an SVG file (a world map) into my scene and render it in a way that is will be zoomable without quality issues. I found only one topic here: http://www.java-gaming.org/index.php?topic=14778.0 Do you have other sources I can check or an already existing tool I can use?
- Mouse Pos to world pos: I'd like to later identify points on the map via lon-lat, as I think that's the best way, but I have no idea how to do it as the map will be zoomable. So let's say I'm over New York (zoomed in) and I'd like to get where exactly I am (lon-lat) based on the mouse cursor.
- I'd like to calculate ballistic path from point A to point B (maybe using lon-lat coords). Am I right that this is what I'm talking about? https://en.wikipedia.org/wiki/Projectile_motion

Thank you!
Offline Shatterhand
« Reply #1 - Posted 2019-11-27 15:30:26 »

Sounds cool, if executed well this is the type of game that I'd want to play.

Micro$oft broke Volkswagen's world record: Volkswagen only made 22 million bugs!
Offline mudlee
« Reply #2 - Posted 2019-11-29 18:22:37 »

Thanks. It motivates me really, I just have not enough time to advance fast. I found out that rasterizing svgs with nanovg and rendering that way will not that be good in the end for various reasons. I found a good article in webgl how to triangulate svg paths hence I can build a VBO out of it.

There are some libs I might port to Java, if I won't find anything better.

Here is the article: https://css-tricks.com/rendering-svg-paths-in-webgl/
Pages: [1]
  ignore  |  Print  
 
 

 
Riven (186 views)
2019-09-04 15:33:17

hadezbladez (4874 views)
2018-11-16 13:46:03

hadezbladez (1785 views)
2018-11-16 13:41:33

hadezbladez (5147 views)
2018-11-16 13:35:35

hadezbladez (1016 views)
2018-11-16 13:32:03

EgonOlsen (4367 views)
2018-06-10 19:43:48

EgonOlsen (5216 views)
2018-06-10 19:43:44

EgonOlsen (2946 views)
2018-06-10 19:43:20

DesertCoockie (3867 views)
2018-05-13 18:23:11

nelsongames (4293 views)
2018-04-24 18:15:36
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!