Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - AGP

Pages: 1 ... 3 4 [5] 6 7 ... 116
61
Support / Re: Cpct?
« on: December 30, 2020, 10:56:45 pm »
About that, I made a GenericBuffer<T> class to mimic Java's xBuffer classes. But there's a chunk in convertTexture() where you do IntBuffer (GenericBuffer<int> in mine) buf = getSmallBuffer(); GL11.GenTextures(buf) and then you claim that the texture refence is now in buf. But buf is a local variable that's never called again.

62
Support / Re: Cpct?
« on: December 30, 2020, 07:56:40 am »
I added the test. And then I think I fixed another issue. Now I'm only getting the appropriate background color, and convertTexture(Texture) is printing [ 12/30/2020 3:57:37 AM ] - ERROR: Failed to upload texture! texID, unhelpfully (helplessly?) is always 0.

63
Support / Re: Programming Question (Bitwise OR)
« on: December 29, 2020, 09:31:54 pm »
Tell me if you think that the numbers matching here is sufficient proof that it's the same thing (the ifs are there just in case):
Code: [Select]
int ALPHA = 255 << 24;
uint r = 1, g = 1, b = 2;
if ((r & 0xffffff00) != 0) {
r = (255u >> (int)(r >> 28 & 8));
}
if ((g & 0xffffff00) != 0) {
g = (255u >> (int)(g >> 28 & 8));
}
if ((b & 0xffffff00) != 0) {
b = (255u >> (int)(b >> 28 & 8));
}
uint fromSigned = (uint)(b | (g << 8) | (r << 16) | ALPHA);
uint fromUnsigned = b | (g << 8) | (r << 16) |4278190080u;
System.Console.WriteLine("OR from Signed: "+fromSigned +", from Unsigned: "+fromUnsigned);

64
Support / Programming Question (Bitwise OR)
« on: December 28, 2020, 09:08:48 pm »
Does it make any difference to bitwise OR 4278190080u and -16777216 (for alpha values) if the result will nevertheless be an unsigned int (I apologize in advance for the C#)?

65
Support / Re: Object/Sprite Batching
« on: December 28, 2020, 09:05:08 pm »
Other than new Object3D(object3D, true) with true being reuseMesh, I don't think so.

66
Support / Re: Cpct?
« on: December 24, 2020, 07:57:34 am »
Apparently this caused the following error:
Quote
Unhandled Exception: System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Texture.setMarker(Int32 renderer, Int32 mark)
   at Texture.setMarker(Int32 mark)
   at AWTGLRenderer.drawStrip(VisList visList, Int32 ind, Int32 length, FrameBuffer buffer, World world)

Note that I've changed nothing about the setMarker method (though wouldn't the Hashtable class complain about the same problem?).

67
Support / Re: Cpct?
« on: December 22, 2020, 06:48:14 pm »
I hadn't had  need of compiled objects because I was using the software renderer, so I don't have them yet.

What does it mean that only drawVertexArray() is being called (drawStrip() and drawPolygon() aren't)?

68
Support / Re: Cpct?
« on: December 19, 2020, 10:17:48 pm »
Yes, everything looks exactly the same (that screenshot was from the C-sharp software renderer, so there's no question that the loading  is done right).

69
Support / Re: Cpct?
« on: December 18, 2020, 05:28:28 pm »
Hahah, it's supposed to be Vader (at exactly this lighting and distance):

https://www.dropbox.com/s/2ch8ajcin5ukdm3/SupposedToBe.png?dl=0

70
Support / Re: Cpct?
« on: December 17, 2020, 07:40:47 am »
The problem there was that it's not paintGL in OpenTK, it's OnPaint. I solved that one. I'm happy that it now clears to the right color. drawWireframe() tells me the right color for the wireframe, but draws nothing, and draw() makes a mess. Still, I'm very happy to be achieving any kind of drawing. Any insight here would be greatly appreciated (see below video).

https://youtu.be/Pfuo77vKUbo

71
Support / Re: Cpct?
« on: December 09, 2020, 07:59:40 am »
Thank you. I manually called init(...), but now I'm getting a black screen.

The following code
Code: [Select]
System.Console.WriteLine("execute(int, object[]): Parameters null? "+(parameters==null) +" Init? "+isInit +" Mode: "+mode);
prints the following:
Quote
execute(int, object[]): Parameters null? False Init? True Mode: 2
execute(int, object[]): Parameters null? False Init? True Mode: 0
execute(int, object[]): Parameters null? True Init? True Mode: 8
execute(int, object[]): Parameters null? True Init? True Mode: 1
execute(int, object[]): Parameters null? False Init? True Mode: 2
execute(int, object[]): Parameters null? False Init? True Mode: 0
Expanding command queue to 3000 entries!
execute(int, object[]): Parameters null? True Init? True Mode: 8
execute(int, object[]): Parameters null? True Init? True Mode: 1
execute(int, object[]): Parameters null? False Init? True Mode: 2
execute(int, object[]): Parameters null? False Init? True Mode: 0
and so on.

Do you have any useful insight here?

72
Support / Re: Cpct?
« on: December 05, 2020, 06:02:05 pm »
I moved it to AWTGLRenderer! init((int, int, int, int, int) doesn't call it, init() does and I can't see what calls init().

73
Support / Re: Cpct?
« on: December 04, 2020, 09:41:36 pm »
AWTGLRenderer. init((int, int, int, int, int) is being called, but not the real one.

74
Support / Re: Cpct?
« on: December 04, 2020, 08:51:09 pm »
What calls init(boolean ok, int x, int y)?

75
Support / Re: Cpct?
« on: October 02, 2020, 12:54:29 pm »
I only ported the software. I haven't decided which way to go with hardware yet.

Pages: 1 ... 3 4 [5] 6 7 ... 116