XNA Creators Club Online
foros de la comunidad

Search Forums

Page 1 of 2 (17 items) 1 2 Next >
  • Re: Getting the tilt of terrain

    Once again with the help of the cross product. If you want to do it on the fly:As you probably have not only the height (y), but also x and z components for each point, you have its position. Now get the position of three neighbourhood points of the terrain; where you are standing and just to the right as well as just in front of it. We call these ...
    Posted to General (Forum) by Henrik Kurelid on 11/01/2008
  • Re: Alpha blending question / issue

    I have not used Maya for exporting fbx files myself so I, but here's hat I would say you need to do:Make sure that the alpha texture is exported by Maya along with the color texture.Write a custom content processor that takes care of the extra alpha texture in the fbx file and assign that to the correct variable in your effect (or however you want ...
    Posted to General (Forum) by Henrik Kurelid on 10/01/2008
  • Re: Semi-Transparent Overlay

    Yes, with the restriction that the transparency would be constant over the entire texture. A bit easier to implement but a bit more restrictive of the result. From the screenshot, it looks like the transparency is variable over the overlay texture.
    Posted to General (Forum) by Henrik Kurelid on 09/01/2008
  • Re: Semi-Transparent Overlay

    This should be no problem. Create the Texture2D with a format that contains an alpha channel and then use SetData<>() to set the desired values for the color and alpha channels.
    Posted to General (Forum) by Henrik Kurelid on 09/01/2008
  • Re: Getting the tilt of terrain

    This is a case for you friendly neighbourhood cross product.From the top of my head, something similar to this should do it:* Start out with your orientation before applying the tilting. We call the forward, right and up vectors:forwardBefore, rightBefore, and upBefore. These vectors need not be units vectors, only the direction matter.* Get the ...
    Posted to General (Forum) by Henrik Kurelid on 09/01/2008
  • Re: Cannot detect which importer to use

    Ok. Perhaps I was unclear. The problem is that you have added your wav file to your content project. You only need to add the xap file. The wav file is referenced from the XACT project (xap file) and hence will be processed in the compilation step. Probably your code is fine, just exclude the wav file from the project.
    Posted to Audio/XACT (Forum) by Henrik Kurelid on 20/12/2007
  • Re: Lots of Texture2D is slow...

    With the slowdown you describe when doing the clicking (~1 sec.), I would guess that you have another problem with your code. (You state that you ''updating the texture to look like a pressed button'' but I guess that you mean switching texture to use in the Draw call and not actually updating the texture with SetData.)Perhaps you could provide a ...
    Posted to XNA Framework (Forum) by Henrik Kurelid on 20/12/2007
  • Re: Cannot detect which importer to use

    The reason is that you have no importer for wav files. If you want to use the XNA audio support, you need to use XACT. Create a XACT project which includes your wav file and import the resulting xap-file instead. Take a deeper look into the documentation for more information. Look at Programming Guide->Audio->How To: Add a Sound File to Your ...
    Posted to Audio/XACT (Forum) by Henrik Kurelid on 20/12/2007
  • Re: don't load a texture2D

    Note that this text applies to XNA 1.0. I know that RootDirectory is r/w in 2.0 so other stuff may have changed as well.When a ContentManager is created, the default RootDirectory is <pathToYourBinDir>\\ i.e. it ends with a separator. Hence an asset name like Content\\texture.jpg can be concatenated to it.If you give a path in the ...
  • Time jump

    Hi,I am in need of controlling the time position of a cue. After skimming through the documentation, I found a implicit variables that, from the description, seemed to give me what I needed:AttackTimeCounts the amount of time elapsed since the start of playback. This counter begins at zero and continues to increment until the cue is ...
    Posted to Audio/XACT (Forum) by Henrik Kurelid on 25/11/2007
Page 1 of 2 (17 items) 1 2 Next >