These are chat archives for opentk/opentk

17th
Apr 2018
chatbridge
@chatbridge
Apr 17 10:08
(Discord) cra0zy: is there a reason why you don't use uint for.. well a bunch of functions
(Discord) cra0zy: ie. genbuffer should return an uint
Ghost
@ghost~59d9ee50d73408ce4f7916bf
Apr 17 10:21

Sorry I am desperated because I have always tried to read obj - I have ported from Java LWJGL into C# OpenTK. I have made sure that Blender -> Export -> Wavefront obj and I have written completed line with StreamReader() and it doesn't see after loading if I use "none" for Build Action, "Copy if newer" for Copy to output directory. Nothing throws error.. https://gist.github.com/sourceskyboxer/3a23ef471876cf4fd7e63fa6b566fbcb

Is it correct or wrong what is better? switch and case statement?

chatbridge
@chatbridge
Apr 17 11:03
(Discord) Hawk: I think it's just because it's easier to handle
(Discord) Hawk: You never get to 2^31-1 anyways
Luca Piccioni
@luca-piccioni
Apr 17 14:34
No, uint arguments are forbidden in a CLS compliant library, because unsigned types are not supported to all CLR languages (i. e. VB). OpenTK is designed to be CLS compliant.
Ghost
@ghost~59d9ee50d73408ce4f7916bf
Apr 17 14:38
Do you mean obj loader can't load in OpenTK? I have tried to port from Java OpenG ( LWJGL )L by ThinMatrix to my OpenTK for C# so sadly how do I have to get successful with obj into GameWindow?
Luca Piccioni
@luca-piccioni
Apr 17 14:39
No Jens, I was replying to cra0zy.
For your issue Jens, you should debug and debug, till the information is uploaded to GPU. Keep practicing and you'll get success.
Ghost
@ghost~59d9ee50d73408ce4f7916bf
Apr 17 14:54
@luca-piccioni , Sorry fbut I can't see messages of Crazy . Wow who hides me? Wait you said? I already tried no success I will upload and you can try if it works thanks
Ghost
@ghost~59d9ee50d73408ce4f7916bf
Apr 17 15:15
with blend for Blender 2.79x
I already exported to obj
image.png
Ghost
@ghost~59d9ee50d73408ce4f7916bf
Apr 17 15:21
And add existing item -> example.obj than edit with Visual Studio 2017 Community than remove
#
#
#


#
#  Mesh
#
g  Mesh
Ghost
@ghost~59d9ee50d73408ce4f7916bf
Apr 17 15:43
@luca-piccioni Did you try why does object not show in viewport
Ghost
@ghost~59d9ee50d73408ce4f7916bf
Apr 17 16:37
No answer?? Can not load obj How do I fix?
Ghost
@ghost~59d9ee50d73408ce4f7916bf
Apr 17 19:41
My issue is not resolved because I have already tried .. I really don't know how do I resolve you mean switch case or if else statement what does it work for obj loading
Ghost
@ghost~59d9ee50d73408ce4f7916bf
Apr 17 22:16
So my website is soon release I will add more tutorials since I showed you nice 1 to 7 tutorials
but i can't get success with stupid object files can not load I have checked non errors
Ghost
@ghost~59d9ee50d73408ce4f7916bf
Apr 17 23:30
Please say me truth! Don't lie me, @luca-piccioni! Why I should wait longer? Or do you have to sleep , to care your family or to go work? Sorry I don't want rush. I feel common cause longer waiting