• Home
  • Products
    • Game Engine
      • Base
      • Mathematics
      • Geometry
      • Physics
      • Particles
      • Animation
      • Graphics
      • Game
      • Game UI
    • Windows Forms
      • Docking Windows
      • Text Editor Control
  • Downloads
  • Buy
    • Overview
    • Professional
    • Indie
    • Non-Commercial
  • Support
    • Overview
    • Blog
    • Forum
    • License FAQ
    • Documentation
  • About
    • About Us
      • Services
    • Contact Us
    • Press
    • Legal Terms
      • Imprint (English)
      • Imprint (German)
Select the search type
 
  • Site
  • Web
Search
DigitalRune.com
Login |Register
NEWS News RSS Feed BLOG Blog RSS Feed FORUM News RSS Feed DOCUMENTATION DigitalRune Software on YouTube DigitalRune Software on Twitter
You are here: SupportForum

If you want to contribute to the forum discussions, please Register or Login.

SearchHome
  • 1
  • 2
  • 3
  • 4
  • 5
HomeHomeDigitalRune Sof...DigitalRune Sof...Game EngineGame Engineerror converting digitalrune math animation variables (matrix, vector, ect) to xna math variables error converting digitalrune math animation variables (matrix, vector, ect) to xna math variables
Previous
 
Next
New Post
12/31/2011 8:03 PM
 
forumfire
No Ranking

Joined: 12/31/2011
Posts: 2
error converting digitalrune math animation variables (matrix, vector, ect) to xna math variables  

The character animation sample is problem free, but lines of code like these bring errors in seperate projects.

vertices[i * 3 + 0] = new VertexPositionNormalTexture(
          (Vector3)triangle.Vertex0,
          (Vector3)normals[i * 3 + 0],
          Vector2.Zero);

Error    2    Cannot convert type 'DigitalRune.Mathematics.Algebra.Vector3F' to 'Microsoft.Xna.Framework.Vector3' 

effect.World = pose;

Error    10    Cannot implicitly convert type 'DigitalRune.Geometry.Pose' to 'Microsoft.Xna.Framework.Matrix'  

 

i've tried to make helper methods to convert digitalrune variables to xna variables, but it won't let me access the values of the digitalrune variables.

xnaVector.X = digitalRuneVector.X;

Cannot implicitly convert type 'DigitalRune.Animation.IAnimation<float>' to 'float' 

 

 >>THANKS<<<
 

 

 

 

 

 
New Post
1/2/2012 10:35 AM
 
HelmutG
6th Level Poster

www.digitalrune.com
Joined: 10/15/2006
Posts: 565
Re: error converting digitalrune math animation variables (matrix, vector, ect) to xna math variables  

Maybe the separate project references the assemblies from the folder References/.NET Framework. Those assemblies are XNA independent and do not contain the implicit cast operators necessary for XNA types.

For XNA support, you must reference the assemblies from the folder References/XNA.

 
 Page 1 of 1
Previous
 
Next
HomeHomeDigitalRune Sof...DigitalRune Sof...Game EngineGame Engineerror converting digitalrune math animation variables (matrix, vector, ect) to xna math variables error converting digitalrune math animation variables (matrix, vector, ect) to xna math variables


DigitalRune is a trademark of Garstenauer Information Technology OG.

Garstenauer Information Technology OG
Weingartenstrasse 35, 4452 Ternberg
Austria (EUROPE)
office@digitalrune.com

Home Products Downloads Buy Support About Us
Game Engine Particles Windows Forms Professional Blog Services
Base Animation Docking Windows Indie Forum Contact Us
Mathematics Graphics Text Editor Control Non-Commercial License FAQ Press (News)
Geometry Game Documentation Legal Terms
Physics Game UI Imprint
Impressum
Copyright © 2006-2012 Garstenauer Information Technology OG Terms Of UsePrivacy Statement