Jump to content
  • Advertisement

Loading .dae (Collada) format. C#, TypeScript

8Observer8

1806 views

Description:

  • Parsing XML .dae file using XPath query language that parse XML files
  • Ambient + diffuse lighting
  • Generating a new view matrix for camera rotation around an object

Run it:

Source code:

ColoredObjectFromCollada.gif



3 Comments


Recommended Comments

On 8/18/2019 at 6:46 PM, Gon said:

Undergoing replacing it with the Java binding of Assimp
http://www.assimp.org/index.php
My suggestion is that you do the same with the C# binding.

I tried to use AssimpNet but my perspective is WebGL and TypeScript. I like C#/OpenTK and I will use it. OpenTK is cross-platform but it is very difficult to me to build apps for Linux, Mac, Android, iOS because I need to have this OS's. I have Windows only now. The simplest way to make 3D interactive applications is WebGL because it allows to run applications from different OS's by one click without plugins. C# and TypeScript support XPath language that allows to work with XML like with SQL (by queries). XPath is very simple and power language. I like it so much. It is more simple for me to write similar code for working with Collada using XPath in both languages: C# and TypeScript.

On 8/18/2019 at 6:46 PM, Gon said:

I used this tutorial for my example above :) I get this link from here: https://www.khronos.org/news/permalink/programmers-tutorial-on-skeletal-animation-using-collada-c-and-opengl It is the first link if you look for collada tutorial in the Internet search.

Edited by 8Observer8

Share this comment


Link to comment
Gon

Posted (edited)

3 hours ago, 8Observer8 said:

I tried to use AssimpNet but my perspective is WebGL and TypeScript. I like C#/OpenTK and I will use it. OpenTK is cross-platform but it is very difficult to me to build apps for Linux, Mac, Android, iOS because I need to have this OS's. I have Windows only now. The simplest way to make 3D interactive applications is WebGL because it allows to run applications from different OS's by one click without plugins. C# and TypeScript support XPath language that allows to work with XML like with SQL (by queries). XPath is very simple and power language. I like it so much. It is more simple for me to write similar code for working with Collada using XPath in both languages: C# and TypeScript.

Fair point.

Also, glad you already knew the link.

Edited by Gon

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!