Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6999325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:31:36+00:00 2026-05-27T20:31:36+00:00

Does it mean only a total of 8 float values can be passed per

  • 0

Does it mean only a total of 8 float values can be passed per vertices’s set of data?

Does this mean you can only have one of the following?

  • 2 inputs of FLOAT_4.
  • 4 inputs of FLOAT_2.
  • 8 inputs of FLOAT_1.
  • Any mixture that will add up to a total of 8 float values?

Is this the case? Because if it is, it’s really misleading in their documentation to say 8 inputs can be used.

Maybe I’m having trouble because I haven’t formatted my data correctly, but I’m trying to use 9 floats per vertices, as in:

  • va0 would be a FLOAT_4, offset set at 0.
  • va1 would be a FLOAT_4, offset set at 4.
  • va2 would be a FLOAT_1, offset set at 8.

But nothing appears on the screen with this experiment. Am I exceeding the VertexShader inputs limit?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:31:37+00:00Added an answer on May 27, 2026 at 8:31 pm

    Okay, so I found the problem.

    If you define more values in your vertex-data (per vertices), such as making a modification from this format:

    position: x  va0.x
              y  va0.y
              z  va0.z
              w  va0.w
    color:    r  va1.r
              g  va1.g
              b  va1.b
              a  va1.a
    

    to something like this:

    position: x  va0.x
              y  va0.y
              z  va0.z
              w  va0.w
    color:    r  va1.r
              g  va1.g
              b  va1.b
              a  va1.a
    uv:       u  va2.x
              v  va2.y
    

    Great… you added a new register to the mix. But what you have to do is:

    • Make sure to pass in the right values in:

      context3D.createVertexBuffer(numOfVertices, vertexDataLength); and…

      uploadFromVector(_vertexData, 0, numOfVertices);

    • Make sure you set the right offsets in your calls to:

      context3D.setVertexBufferAt(2, vertexBuffer, 8, Context3DVertexBufferFormat.FLOAT_4);

    • Last but certainly not least (exactly what I was missing)… make USE of that register in your shader!

    If you added a new vertex-attribute but you don’t use it in your AGAL code… it won’t render!

    Hopefully this saves others some time wondering where they went wrong with their shaders!

    Note: I know, common sense – if you create something, why wouldn’t you use it anyways? I was testing if the previous shader still worked with the extra data. It does, as long I don’t assign my new vertex-attribute (va2) in the mix. So if you’re testing, make sure to only use setVertexBufferAt(...) with the input registers you’ll actually use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Many languages have functions which only process plaintext, not binary. Does this mean that
I only have experience with log4net however that does not mean that there are
What does Generate Debug Info mean in VB/C#? The difference between none and pdb-only
Does that mean that I can't share a Form between delphi 2007 and 2009?
What does this mean exactly? I'm doing something like this: File.Copy(@\\foo\bar\baz.txt, @c:\test\baz.txt); MSDN doesn't
Im using iOS5 to write my app. So does that mean it will only
I'm not sure I really understand dependency management. Does it mean you're only not
Does it mean search the previous folder for somefile.h or the project folder for
Does [_\s^] mean underscore and whitespace but not (quote) in Reg I understand that
What does it mean when you get or create a date in UTC format

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.