SVG Compatibility
5 posts • Page 1 of 1
SVG Compatibility
Four parts to this.
1. Ability to export scenes or phunlets as SVG files. Simple enough. I know Algodoo already uses vectors to handle polygons, as do SVGs.
2. Ability to import an SVG as a scene. Either load the file as a new scene or import it as a phunlet.
3. Ability to use SVG files as textures. This is to reduce lag.
4. Ability to turn an SVG texture into its respective polygons. This would be accomplished via the Generate Geometry from Texture button and is mainly for convenience.
Also, correct me if I'm wrong, but I think SVG stands for Scalable Vector Graphics. It's basically a method of encoding a scene using vectors, so you don't get pixellations or dithering errors when you scale it up.
I also know that there already exists a program that can convert SVG files into PHN files. This, and its inverse, could be implemented into Algodoo.
1. Ability to export scenes or phunlets as SVG files. Simple enough. I know Algodoo already uses vectors to handle polygons, as do SVGs.
2. Ability to import an SVG as a scene. Either load the file as a new scene or import it as a phunlet.
3. Ability to use SVG files as textures. This is to reduce lag.
4. Ability to turn an SVG texture into its respective polygons. This would be accomplished via the Generate Geometry from Texture button and is mainly for convenience.
Also, correct me if I'm wrong, but I think SVG stands for Scalable Vector Graphics. It's basically a method of encoding a scene using vectors, so you don't get pixellations or dithering errors when you scale it up.
I also know that there already exists a program that can convert SVG files into PHN files. This, and its inverse, could be implemented into Algodoo.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
-
Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
Re: SVG Compatibility
1.
I don't support this suggestion, sorry.
1-1. Once implemented the feature, it'll take pretty much time to maintain for compatibility.
1-2. It's mostly impossible to convert phn to svg perfectly. For example, how do you save laser line as svg file?
1-3. If you hope you can create phz to svg generator.
2.
Same above.
3.
This may be good idea, but is this really reduce lag?
I don't support this suggestion, sorry.
1-1. Once implemented the feature, it'll take pretty much time to maintain for compatibility.
1-2. It's mostly impossible to convert phn to svg perfectly. For example, how do you save laser line as svg file?
1-3. If you hope you can create phz to svg generator.
2.
Same above.
3.
This may be good idea, but is this really reduce lag?
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
-
tatt61880 - [Most Helpful Person 2010]
- Posts: 1150
- Joined: Mon Aug 31, 2009 5:45 pm
- Location: Tokyo, Japan
Re: SVG Compatibility
1.
1-1. Well, maybe. I don't think so though.
1-2.I don't really know what information an SVG contains, but I think just turning circles and boxes to polygons and encoding the polygons and their respective colors would do it.
Hinges could be circles and fixates X's like in (I think) some early versions of Phun.
A laser line could be a long narrow polygon. That's all it is, isn't it?
Or, perhaps non-geoms could be ignored entirely.
1-3. I don't know enough about the structure of SVG files or any programming language other than Thyme to do much anything.
But, it's surely possible, as svg2phn exists and has been used.
2. See above.
3. Well, it wouldn't have to remember anything other than color and surfaces, would it? And it wouldn't have to calculate rotation for each individual polygon, would it?
1-1. Well, maybe. I don't think so though.
1-2.I don't really know what information an SVG contains, but I think just turning circles and boxes to polygons and encoding the polygons and their respective colors would do it.
Hinges could be circles and fixates X's like in (I think) some early versions of Phun.
A laser line could be a long narrow polygon. That's all it is, isn't it?
Or, perhaps non-geoms could be ignored entirely.
1-3. I don't know enough about the structure of SVG files or any programming language other than Thyme to do much anything.
But, it's surely possible, as svg2phn exists and has been used.
2. See above.
3. Well, it wouldn't have to remember anything other than color and surfaces, would it? And it wouldn't have to calculate rotation for each individual polygon, would it?
Matthias Wandel is epic, in my humble opinion.
I love my brain...
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
-
Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
Re: SVG Compatibility
1. I don't see a place for this in Algodoo. I think it would be best to stick to svg2phn.
3. I'm pretty sure image transformation is faster than all that geometry rendering.
3. I'm pretty sure image transformation is faster than all that geometry rendering.
Human horse pasture expansion OpenGL Book Hall
Kwon owned Version (C) 2002-2008
-
guyboy - Posts: 80
- Joined: Mon Aug 31, 2009 6:19 pm
- Location: Ḻ̘̬͕͍͚̥͈͚͖̝̜̲͕̭̩ͅ
Re: SVG Compatibility
*SVG2Phun2
*Phn_output for Inkscape
Both above is what I'm maintaining and I have to say these programs don't give us perfect compatibility between svg and phn.
*Phn_output for Inkscape
Both above is what I'm maintaining and I have to say these programs don't give us perfect compatibility between svg and phn.
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
-
tatt61880 - [Most Helpful Person 2010]
- Posts: 1150
- Joined: Mon Aug 31, 2009 5:45 pm
- Location: Tokyo, Japan
5 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest