Coder Social home page Coder Social logo

Comments (6)

Tape-Worm avatar Tape-Worm commented on May 29, 2024 1

Yes, you need a name for the track registration so the animation system can correlate the key frames to the correct properties on the animated object. The fault is mine because the animation system is poorly documented at the moment (and thank you for mentioning this, I'll make a note to try and clean that up).

As you've learned, you should not pass in an arbitrary name, this name is for the registration of the track. For the sprite animation controller, you can get the registration easily by using the static values present on that class. So for example, you can do this:
Edit2DTexture(GorgonSpriteAnimationController.TextureTrack.TrackName)

or for sprite rotation you can do:
EditSingle(GorgonSpriteAnimationController.AngleTrack.TrackName)

And so on...

Each of the included controllers have their track registrations exposed as static variables that you can interrogate and get metadata from. And the controllers have a property called RegisteredTracks as well that you can interrogate after creating an instance of the controller.

Hope that clears things up.

from gorgon.

Tape-Worm avatar Tape-Worm commented on May 29, 2024

For future reference, questions like this are not considered bugs. Please don't tag them as such. If you're unsure, then leave it to me to tag.

  1. Gorgon uses Direct 3D 11.4 - This is in the documentation, on the bottom of the very first page. This means that the video card needs to support Direct 3D 12 (I know, it's confusing, blame Microsoft) in order to support 11.3/11.4.

  2. I will look into it. I know that Gorgon uses very few features from the extended feature levels. It's entirely possible that it doesn't use anything from 11.3 or 11.4 (I need to go back through the code to determine if this is the case). If I find that it doesn't use 11.3/11.4 features (I know it uses 11.2 features for certain), then I can drop the required feature level down. However, if it does use features from 11.3/11.4, then I won't be changing it as it'd be a major pain to make it compliant with multiple feature levels.

Keep in mind, that this will not be a trivial thing, so this will have to wait until 3.1 is released (looking at July/August for that).

I'll keep this open until I can get back to you with the results of my findings.

from gorgon.

Tape-Worm avatar Tape-Worm commented on May 29, 2024

OK, so my initial findings are quite positive. I am able to use D3D 11.2 with Gorgon so far (I still haven't gone through everything yet, shaders may be a problem still).

from gorgon.

Tape-Worm avatar Tape-Worm commented on May 29, 2024

So it looks like everything's fine in D3D 11.2.

I've updated the 3.1 branch to include this fix. You may pull that branch down and compile it and give it a shot. Be aware that 3.1 is:

  • Not done yet.
  • Likely to have bugs.
  • Definitely has breaking changes - so you'll need to modify your code most likely.

from gorgon.

Ranarrr avatar Ranarrr commented on May 29, 2024

Please excuse my late comment, didn't see this until 2 days ago..
As for converting the code; I had to include a name as a parameter to Edit2DTexture. However when I just included a random name, all the animations were just white squares. I later figured out for the name parameter I'd have to pass "Texture" as name, as to edit the texture of the GorgonTexture2DView. It didn't come across clear enough for me that the redesigned Animation API included Edit2DTexture, but now I know.

I'll come back later with tests done with users that had problems. So far it's working perfectly for me.

Cheers

from gorgon.

Tape-Worm avatar Tape-Worm commented on May 29, 2024

Since this seems to be resolved, I'm going to close this issue.

from gorgon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.