Jump to content
Xtreme .Net Talk

ThePentiumGuy

Avatar/Signature
  • Posts

    1152
  • Joined

  • Last visited

Everything posted by ThePentiumGuy

  1. wow.. complicated explanation, thanks (for letting me know at least that there is a reason behind this), pent
  2. hey, in Unmanaged C++ when you try to lock the Vertex buffer you need to do something like this (off the top of my head) VB->Lock(0, (void**)&vertices,0) err.. i dont remmeber exactly, but i remember that the (void**)&vertices argument is there somewehre i know the parenthesees specifies like a CType for example int x; x = (float) 1 / (float) 2 *i think* lol but why is void a pointer to a pointer and why would you want vertices to be converted to the void type?, pent
  3. i think you can.. but im not sure what you mean by 'Open access to the d3d device'
  4. hey a quick question, whta's OrElse do?, tahnks in response to the first post, If (e.keycode = keys.Back Or e.keycode = keys.Delete Then 'do the same for the numbers(ex: keys.1 though 9 i beleive) or maybe "Or Char.IsNumber(e.keycode)" would work 'here you'd type in code that executes when you push thoe keys end if
  5. you'd need alphablending before rendering: Dev.RenderState.AlphaSourceBlend = Blend.SourceAlpha Dev.RenderState.AlphaDestinationBlend = Blend.InvSourceAlpha Dev.RenderState.AlphaBlendEnable = True while creating your texture, you need to add a few other arguments to it (im doing this at the top of my head, so i dont remember exactly what it is) dim x as color x = Color.FromArgb(255, 255, 255, 255) 'i think this is black, - the firrst argument refers to Alpha - 255 is the highest and you're saying "make a black color which is fully opaque, transparent) texture = textureloader.fromfile ("texture.bmp",width,height,filter,filter,yourtransparentcolor.toArgb) there may be more arguments but i donht remember exactly, pent (oh yeah the code i pasted was vb, it should be easy to do the same in C#:) ) edit: oh yeah be sure to disable alphablending when you're done drawing the objects that should be transparent
  6. thnaks for lettin me know, pent
  7. hello? am i talking to myself here ? :) in either case, i hope u get this message: the book was great, it goes into most of the DirectX functions..etc it goes in depth as you wanted, it provides severa; chapters on HLSL my opinion: its a good book, but its not an easy read - it needs to be read like a textbook, pent
  8. im a bit confused.. hyena: hes talking about textures and ur talking about noise?, pent
  9. try closing MSN Plus if you have it, when MSN Plus is open, and Boss Protection is on, pressing Ctrl + Space doesnt work... but i have no idea why everythign else you said doesnt work.. btw - getting vs 2003 probably wont help because maybe its ur comp? try running an AV(such as Norton) or a spyware remover program(such as AdAware). see if taht helps btw do other programs such as NotePad and Word still do the same thing?, pent
  10. ..amazon has taken almost more than 2 weeks, apparently they "just shipped it today", as i got in my mail
  11. :) oh, well from the way you said it earlier i thought u meant that you needed help actually doing the selecting layers part.. my bad, pent btw isnt there a Toolbar control in vb.net?
  12. hmm there are books written by Microsoft for example from Microsoft Press "DirectX: a progrtammable graphics pipeline" or somethig like taht iirc and there are some books written by people who work for microsoft(But not in MS press) so they should know the proper ways of doing things in directx yeah you're right the samples/documentation suck :) and for a simple example in the d3d wizard, they type in code like this [/color] [size=2][color=#008000]' We won't use this maliciously [/color][/size][size=2]<System.Security.SuppressUnmanagedCodeSecurity()> [/size][size=2][color=#0000ff]Private[/color][/size][size=2][color=#0000ff]Declare[/color][/size][size=2][color=#0000ff]Function[/color][/size][size=2] QueryPerformanceFrequency [/size][size=2][color=#0000ff]Lib[/color][/size][size=2] "kernel32" ([/size][size=2][color=#0000ff]ByRef[/color][/size][size=2] PerformanceFrequency [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]Long[/color][/size][size=2]) [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]Boolean [/color][/size][size=2][color=#008000]' We won't use this maliciously [/color][/size][size=2]<System.Security.SuppressUnmanagedCodeSecurity()> [/size][size=2][color=#0000ff]Private[/color][/size][size=2][color=#0000ff]Declare[/color][/size][size=2][color=#0000ff]Function[/color][/size][size=2] QueryPerformanceCounter [/size][size=2][color=#0000ff]Lib[/color][/size][size=2] "kernel32" ([/size][size=2][color=#0000ff]ByRef[/color][/size][size=2] PerformanceCount [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]Long[/color][/size][size=2]) [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]Boolean [/color][/size][size=2][color=#008000]' We won't use this maliciously [/color][/size][size=2]<System.Security.SuppressUnmanagedCodeSecurity()> [/size][size=2][color=#0000ff]Public[/color][/size][size=2][color=#0000ff]Declare[/color][/size][size=2][color=#0000ff]Function[/color][/size][size=2] timeGetTime [/size][size=2][color=#0000ff]Lib[/color][/size][size=2] "winmm.dll" () [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]Integer[/color][/size] [size=2][color=#0000ff][/size] they really gotta provide good free docs, not just books pent edit: oh yah and witht the installation of the summer update - the wizard doesnt work, has a few minor errors (cannot convert color to integer..etc)
  13. ThePentiumGuy

    Help

    nice, btw i got your email from the post on your forum
  14. ThePentiumGuy

    Help

    wow! u have 90 tutorials :) uve done a lot of work man
  15. ThePentiumGuy

    Help

    here's your swapchain tutorial :) the sentences in bold are the ones i didnt understand(i used BabelFish translation), the rest i reworded to make it sound proper english ;) i didnt understand the 'conclusion' - and by the way, the admins are probably gonna get mad if i keep posting word docs here, i cant PM you or Email you becuase thats what your settings say, so can u give me ur email, pent SwapChain.doc
  16. ThePentiumGuy

    Help

    arch4ngel: :) that's exactly what i had in mind robydx: what im saying is, i can use the translator to try to get the general meaning of what you're trying to say - and then try to rewrite the translated sentence in english, how about that? pent
  17. or if you dont have option strict on, delete "As Any" to make it ByRef lpBits or if you cant do that in a function;s argument just type in ByRef lpBits As Object as technotone said
  18. ThePentiumGuy

    Help

    hey dude, ill help, but i dont know italian - if you give me the gist of what you're gonna say (or ill just put it into a translator and get the gist) maybe i can figure it out :) pent
  19. google :p (..."message too short"... i had to type this line in lol)
  20. hey dude, im not too sure whether you can do this in VB/C#, but on my TI-89 graphing calculator you can: if you can somehow "Xor" 2 bitmaps/images (Xor is like an And or an Or) maybe it'll do it for you, but i highly doubt you can do this in .net something like this: playerstandingallaloneImage = tenniscourtImage Xor tenniscourtwithplayerImage dont quote me on this(by the way if this method *does* work but it doesnt acheive theright results, try And or Or... but dude im really not sure, Pent
  21. i dont see anything...... engine252: :p lol! - rpgwizard: could you please explain your program more so we can answer ur question, pent
  22. well, dude, im assuming you're using GDI+ here, whatever object you draw first is on the 'bottom' layer, the last object wll be on the top editor... and im not too *sure* if you can "Go bakc and edit layers" in GDI+ beucase it treats it like a big heap
  23. wow... there's more to this than i thought :O - im gonna go look into this thanks kavan (hey btw, are you the same guy who made the ArtificialHeart game engine???, cuz i know ive seen you before), pent
  24. hey does anyone know how to use the Mesh.Intersect command? it says something about rays and such... pent
×
×
  • Create New...